cc430f5137 0.1.0

Peripheral access API for CC430F5137 microcontroller
#[repr(C)]
#[doc = "Register block"]
pub struct RegisterBlock {
    tactl: Tactl,
    tacctl0: Tacctl0,
    tacctl1: Tacctl1,
    tacctl2: Tacctl2,
    _reserved4: [u8; 0x08],
    tar: Tar,
    taccr0: Taccr0,
    taccr1: Taccr1,
    taccr2: Taccr2,
    _reserved8: [u8; 0x08],
    ta1ex0: Ta1ex0,
    _reserved9: [u8; 0x0c],
    taiv: Taiv,
}
impl RegisterBlock {
    #[doc = "0x00 - Timer1_A3 Control"]
    #[inline(always)]
    pub const fn tactl(&self) -> &Tactl {
        &self.tactl
    }
    #[doc = "0x02 - Timer1_A3 Capture/Compare Control 0"]
    #[inline(always)]
    pub const fn tacctl0(&self) -> &Tacctl0 {
        &self.tacctl0
    }
    #[doc = "0x04 - Timer1_A3 Capture/Compare Control 1"]
    #[inline(always)]
    pub const fn tacctl1(&self) -> &Tacctl1 {
        &self.tacctl1
    }
    #[doc = "0x06 - Timer1_A3 Capture/Compare Control 2"]
    #[inline(always)]
    pub const fn tacctl2(&self) -> &Tacctl2 {
        &self.tacctl2
    }
    #[doc = "0x10 - Timer1_A3"]
    #[inline(always)]
    pub const fn tar(&self) -> &Tar {
        &self.tar
    }
    #[doc = "0x12 - Timer1_A3 Capture/Compare 0"]
    #[inline(always)]
    pub const fn taccr0(&self) -> &Taccr0 {
        &self.taccr0
    }
    #[doc = "0x14 - Timer1_A3 Capture/Compare 1"]
    #[inline(always)]
    pub const fn taccr1(&self) -> &Taccr1 {
        &self.taccr1
    }
    #[doc = "0x16 - Timer1_A3 Capture/Compare 2"]
    #[inline(always)]
    pub const fn taccr2(&self) -> &Taccr2 {
        &self.taccr2
    }
    #[doc = "0x20 - Timer1_A3 Expansion Register 0"]
    #[inline(always)]
    pub const fn ta1ex0(&self) -> &Ta1ex0 {
        &self.ta1ex0
    }
    #[doc = "0x2e - Timer1_A3 Interrupt Vector Word"]
    #[inline(always)]
    pub const fn taiv(&self) -> &Taiv {
        &self.taiv
    }
}
#[doc = "TACTL (rw) register accessor: Timer1_A3 Control\n\nYou can [`read`](crate::Reg::read) this register and get [`tactl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tactl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tactl`] module"]
#[doc(alias = "TACTL")]
pub type Tactl = crate::Reg<tactl::TactlSpec>;
#[doc = "Timer1_A3 Control"]
pub mod tactl;
#[doc = "TACCTL0 (rw) register accessor: Timer1_A3 Capture/Compare Control 0\n\nYou can [`read`](crate::Reg::read) this register and get [`tacctl0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tacctl0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tacctl0`] module"]
#[doc(alias = "TACCTL0")]
pub type Tacctl0 = crate::Reg<tacctl0::Tacctl0Spec>;
#[doc = "Timer1_A3 Capture/Compare Control 0"]
pub mod tacctl0;
#[doc = "TACCTL1 (rw) register accessor: Timer1_A3 Capture/Compare Control 1\n\nYou can [`read`](crate::Reg::read) this register and get [`tacctl1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tacctl1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tacctl1`] module"]
#[doc(alias = "TACCTL1")]
pub type Tacctl1 = crate::Reg<tacctl1::Tacctl1Spec>;
#[doc = "Timer1_A3 Capture/Compare Control 1"]
pub mod tacctl1;
#[doc = "TACCTL2 (rw) register accessor: Timer1_A3 Capture/Compare Control 2\n\nYou can [`read`](crate::Reg::read) this register and get [`tacctl2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tacctl2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tacctl2`] module"]
#[doc(alias = "TACCTL2")]
pub type Tacctl2 = crate::Reg<tacctl2::Tacctl2Spec>;
#[doc = "Timer1_A3 Capture/Compare Control 2"]
pub mod tacctl2;
#[doc = "TAR (rw) register accessor: Timer1_A3\n\nYou can [`read`](crate::Reg::read) this register and get [`tar::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tar::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tar`] module"]
#[doc(alias = "TAR")]
pub type Tar = crate::Reg<tar::TarSpec>;
#[doc = "Timer1_A3"]
pub mod tar;
#[doc = "TACCR0 (rw) register accessor: Timer1_A3 Capture/Compare 0\n\nYou can [`read`](crate::Reg::read) this register and get [`taccr0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`taccr0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@taccr0`] module"]
#[doc(alias = "TACCR0")]
pub type Taccr0 = crate::Reg<taccr0::Taccr0Spec>;
#[doc = "Timer1_A3 Capture/Compare 0"]
pub mod taccr0;
#[doc = "TACCR1 (rw) register accessor: Timer1_A3 Capture/Compare 1\n\nYou can [`read`](crate::Reg::read) this register and get [`taccr1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`taccr1::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@taccr1`] module"]
#[doc(alias = "TACCR1")]
pub type Taccr1 = crate::Reg<taccr1::Taccr1Spec>;
#[doc = "Timer1_A3 Capture/Compare 1"]
pub mod taccr1;
#[doc = "TACCR2 (rw) register accessor: Timer1_A3 Capture/Compare 2\n\nYou can [`read`](crate::Reg::read) this register and get [`taccr2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`taccr2::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@taccr2`] module"]
#[doc(alias = "TACCR2")]
pub type Taccr2 = crate::Reg<taccr2::Taccr2Spec>;
#[doc = "Timer1_A3 Capture/Compare 2"]
pub mod taccr2;
#[doc = "TA1EX0 (rw) register accessor: Timer1_A3 Expansion Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`ta1ex0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ta1ex0::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ta1ex0`] module"]
#[doc(alias = "TA1EX0")]
pub type Ta1ex0 = crate::Reg<ta1ex0::Ta1ex0Spec>;
#[doc = "Timer1_A3 Expansion Register 0"]
pub mod ta1ex0;
#[doc = "TAIV (rw) register accessor: Timer1_A3 Interrupt Vector Word\n\nYou can [`read`](crate::Reg::read) this register and get [`taiv::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`taiv::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@taiv`] module"]
#[doc(alias = "TAIV")]
pub type Taiv = crate::Reg<taiv::TaivSpec>;
#[doc = "Timer1_A3 Interrupt Vector Word"]
pub mod taiv;