#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Control Register"] pub cr: CR, #[doc = "0x04 - Mode Register"] pub mr: MR, #[doc = "0x08 - Trigger Register"] pub trigr: TRIGR, _reserved3: [u8; 0x04], #[doc = "0x10 - Channel Enable Register"] pub cher: CHER, #[doc = "0x14 - Channel Disable Register"] pub chdr: CHDR, #[doc = "0x18 - Channel Status Register"] pub chsr: CHSR, #[doc = "0x1c..0x24 - Conversion Data Register 0"] pub cdr: [CDR; 2], #[doc = "0x24 - Interrupt Enable Register"] pub ier: IER, #[doc = "0x28 - Interrupt Disable Register"] pub idr: IDR, #[doc = "0x2c - Interrupt Mask Register"] pub imr: IMR, #[doc = "0x30 - Interrupt Status Register"] pub isr: ISR, _reserved11: [u8; 0x60], #[doc = "0x94 - Analog Current Register"] pub acr: ACR, _reserved12: [u8; 0x4c], #[doc = "0xe4 - Write Protection Mode Register"] pub wpmr: WPMR, #[doc = "0xe8 - Write Protection Status Register"] pub wpsr: WPSR, } #[doc = "CR (w) register accessor: an alias for `Reg`"] pub type CR = crate::Reg; #[doc = "Control Register"] pub mod cr; #[doc = "MR (rw) register accessor: an alias for `Reg`"] pub type MR = crate::Reg; #[doc = "Mode Register"] pub mod mr; #[doc = "TRIGR (rw) register accessor: an alias for `Reg`"] pub type TRIGR = crate::Reg; #[doc = "Trigger Register"] pub mod trigr; #[doc = "CHER (w) register accessor: an alias for `Reg`"] pub type CHER = crate::Reg; #[doc = "Channel Enable Register"] pub mod cher; #[doc = "CHDR (w) register accessor: an alias for `Reg`"] pub type CHDR = crate::Reg; #[doc = "Channel Disable Register"] pub mod chdr; #[doc = "CHSR (r) register accessor: an alias for `Reg`"] pub type CHSR = crate::Reg; #[doc = "Channel Status Register"] pub mod chsr; #[doc = "CDR (w) register accessor: an alias for `Reg`"] pub type CDR = crate::Reg; #[doc = "Conversion Data Register 0"] pub mod cdr; #[doc = "IER (w) register accessor: an alias for `Reg`"] pub type IER = crate::Reg; #[doc = "Interrupt Enable Register"] pub mod ier; #[doc = "IDR (w) register accessor: an alias for `Reg`"] pub type IDR = crate::Reg; #[doc = "Interrupt Disable Register"] pub mod idr; #[doc = "IMR (r) register accessor: an alias for `Reg`"] pub type IMR = crate::Reg; #[doc = "Interrupt Mask Register"] pub mod imr; #[doc = "ISR (r) register accessor: an alias for `Reg`"] pub type ISR = crate::Reg; #[doc = "Interrupt Status Register"] pub mod isr; #[doc = "ACR (rw) register accessor: an alias for `Reg`"] pub type ACR = crate::Reg; #[doc = "Analog Current Register"] pub mod acr; #[doc = "WPMR (rw) register accessor: an alias for `Reg`"] pub type WPMR = crate::Reg; #[doc = "Write Protection Mode Register"] pub mod wpmr; #[doc = "WPSR (r) register accessor: an alias for `Reg`"] pub type WPSR = crate::Reg; #[doc = "Write Protection Status Register"] pub mod wpsr;