#[repr(C)] #[doc = "Register block"] pub struct RegisterBlock { cr: Cr, _reserved1: [u8; 0x0c], ier: Ier, idr: Idr, imr: Imr, isr: Isr, _reserved5: [u8; 0x30], odata: Odata, } impl RegisterBlock { #[doc = "0x00 - Control Register"] #[inline(always)] pub const fn cr(&self) -> &Cr { &self.cr } #[doc = "0x10 - Interrupt Enable Register"] #[inline(always)] pub const fn ier(&self) -> &Ier { &self.ier } #[doc = "0x14 - Interrupt Disable Register"] #[inline(always)] pub const fn idr(&self) -> &Idr { &self.idr } #[doc = "0x18 - Interrupt Mask Register"] #[inline(always)] pub const fn imr(&self) -> &Imr { &self.imr } #[doc = "0x1c - Interrupt Status Register"] #[inline(always)] pub const fn isr(&self) -> &Isr { &self.isr } #[doc = "0x50 - Output Data Register"] #[inline(always)] pub const fn odata(&self) -> &Odata { &self.odata } } #[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 = "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 = "ODATA (r) register accessor: Output Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`odata::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@odata`] module"] #[doc(alias = "ODATA")] pub type Odata = crate::Reg; #[doc = "Output Data Register"] pub mod odata;