#[repr(C)] #[doc = "Register block"] pub struct RegisterBlock { cr: Cr, mr: Mr, _reserved2: [u8; 0x1c], ier: Ier, idr: Idr, imr: Imr, isr: Isr, _reserved6: [u8; 0x60], acr: Acr, _reserved7: [u8; 0x4c], wpmr: Wpmr, wpsr: Wpsr, } impl RegisterBlock { #[doc = "0x00 - Control Register"] #[inline(always)] pub const fn cr(&self) -> &Cr { &self.cr } #[doc = "0x04 - Mode Register"] #[inline(always)] pub const fn mr(&self) -> &Mr { &self.mr } #[doc = "0x24 - Interrupt Enable Register"] #[inline(always)] pub const fn ier(&self) -> &Ier { &self.ier } #[doc = "0x28 - Interrupt Disable Register"] #[inline(always)] pub const fn idr(&self) -> &Idr { &self.idr } #[doc = "0x2c - Interrupt Mask Register"] #[inline(always)] pub const fn imr(&self) -> &Imr { &self.imr } #[doc = "0x30 - Interrupt Status Register"] #[inline(always)] pub const fn isr(&self) -> &Isr { &self.isr } #[doc = "0x94 - Analog Control Register"] #[inline(always)] pub const fn acr(&self) -> &Acr { &self.acr } #[doc = "0xe4 - Write Protect Mode Register"] #[inline(always)] pub const fn wpmr(&self) -> &Wpmr { &self.wpmr } #[doc = "0xe8 - Write Protect Status Register"] #[inline(always)] pub const fn wpsr(&self) -> &Wpsr { &self.wpsr } } #[doc = "CR (w) register accessor: Control Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`] module"] #[doc(alias = "CR")] pub type Cr = crate::Reg; #[doc = "Control Register"] pub mod cr; #[doc = "MR (rw) register accessor: Mode Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mr::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mr`] module"] #[doc(alias = "MR")] pub type Mr = crate::Reg; #[doc = "Mode Register"] pub mod mr; #[doc = "IER (w) register accessor: Interrupt Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ier::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ier`] module"] #[doc(alias = "IER")] pub type Ier = crate::Reg; #[doc = "Interrupt Enable Register"] pub mod ier; #[doc = "IDR (w) register accessor: Interrupt Disable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`idr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@idr`] module"] #[doc(alias = "IDR")] pub type Idr = crate::Reg; #[doc = "Interrupt Disable Register"] pub mod idr; #[doc = "IMR (r) register accessor: Interrupt Mask Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`imr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@imr`] module"] #[doc(alias = "IMR")] pub type Imr = crate::Reg; #[doc = "Interrupt Mask Register"] pub mod imr; #[doc = "ISR (r) register accessor: Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`isr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@isr`] module"] #[doc(alias = "ISR")] pub type Isr = crate::Reg; #[doc = "Interrupt Status Register"] pub mod isr; #[doc = "ACR (rw) register accessor: Analog Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`acr::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`acr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@acr`] module"] #[doc(alias = "ACR")] pub type Acr = crate::Reg; #[doc = "Analog Control Register"] pub mod acr; #[doc = "WPMR (rw) register accessor: Write Protect Mode Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wpmr::R`]. You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wpmr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wpmr`] module"] #[doc(alias = "WPMR")] pub type Wpmr = crate::Reg; #[doc = "Write Protect Mode Register"] pub mod wpmr; #[doc = "WPSR (r) register accessor: Write Protect Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`wpsr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wpsr`] module"] #[doc(alias = "WPSR")] pub type Wpsr = crate::Reg; #[doc = "Write Protect Status Register"] pub mod wpsr;