#[repr(C)] #[doc = "Register block"] pub struct RegisterBlock { mr: Mr, ier: Ier, idr: Idr, imr: Imr, isr: Isr, rhr: Rhr, _reserved6: [u8; 0xc8], wpmr: Wpmr, wpsr: Wpsr, } impl RegisterBlock { #[doc = "0x00 - Mode Register"] #[inline(always)] pub const fn mr(&self) -> &Mr { &self.mr } #[doc = "0x04 - Interrupt Enable Register"] #[inline(always)] pub const fn ier(&self) -> &Ier { &self.ier } #[doc = "0x08 - Interrupt Disable Register"] #[inline(always)] pub const fn idr(&self) -> &Idr { &self.idr } #[doc = "0x0c - Interrupt Mask Register"] #[inline(always)] pub const fn imr(&self) -> &Imr { &self.imr } #[doc = "0x10 - Interrupt Status Register"] #[inline(always)] pub const fn isr(&self) -> &Isr { &self.isr } #[doc = "0x14 - Reception Holding Register"] #[inline(always)] pub const fn rhr(&self) -> &Rhr { &self.rhr } #[doc = "0xe0 - Write Protection Mode Register"] #[inline(always)] pub const fn wpmr(&self) -> &Wpmr { &self.wpmr } #[doc = "0xe4 - Write Protection Status Register"] #[inline(always)] pub const fn wpsr(&self) -> &Wpsr { &self.wpsr } } #[doc = "MR (rw) register accessor: Mode Register\n\nYou can [`read`](crate::Reg::read) this register and get [`mr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mr::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@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 [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::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 [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::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::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::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 = "RHR (r) register accessor: Reception Holding Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rhr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rhr`] module"] #[doc(alias = "RHR")] pub type Rhr = crate::Reg; #[doc = "Reception Holding Register"] pub mod rhr; #[doc = "WPMR (rw) register accessor: Write Protection Mode Register\n\nYou can [`read`](crate::Reg::read) this register and get [`wpmr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wpmr::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@wpmr`] module"] #[doc(alias = "WPMR")] pub type Wpmr = crate::Reg; #[doc = "Write Protection Mode Register"] pub mod wpmr; #[doc = "WPSR (r) register accessor: Write Protection Status Register\n\nYou can [`read`](crate::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 Protection Status Register"] pub mod wpsr;