#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { _reserved0: [u8; 0x0400], #[doc = "0x400 - Ready flag."] pub ready: READY, _reserved1: [u8; 0x0100], #[doc = "0x504 - Configuration register."] pub config: CONFIG, _reserved_2_erasepage: [u8; 0x04], #[doc = "0x50c - Register for erasing all non-volatile user memory."] pub eraseall: ERASEALL, #[doc = "0x510 - Register for erasing a protected non-volatile memory page."] pub erasepcr0: ERASEPCR0, #[doc = "0x514 - Register for start erasing User Information Congfiguration Registers."] pub eraseuicr: ERASEUICR, } impl RegisterBlock { #[doc = "0x508 - Register for erasing a non-protected non-volatile memory page."] #[inline(always)] pub fn erasepcr1(&self) -> &ERASEPCR1 { unsafe { &*(((self as *const Self) as *const u8).add(1288usize) as *const ERASEPCR1) } } #[doc = "0x508 - Register for erasing a non-protected non-volatile memory page."] #[inline(always)] pub fn erasepage(&self) -> &ERASEPAGE { unsafe { &*(((self as *const Self) as *const u8).add(1288usize) as *const ERASEPAGE) } } } #[doc = "READY (r) register accessor: an alias for `Reg`"] pub type READY = crate::Reg; #[doc = "Ready flag."] pub mod ready; #[doc = "CONFIG (rw) register accessor: an alias for `Reg`"] pub type CONFIG = crate::Reg; #[doc = "Configuration register."] pub mod config; #[doc = "ERASEPAGE (rw) register accessor: an alias for `Reg`"] pub type ERASEPAGE = crate::Reg; #[doc = "Register for erasing a non-protected non-volatile memory page."] pub mod erasepage; #[doc = "ERASEPCR1 (rw) register accessor: an alias for `Reg`"] pub type ERASEPCR1 = crate::Reg; #[doc = "Register for erasing a non-protected non-volatile memory page."] pub mod erasepcr1; #[doc = "ERASEALL (rw) register accessor: an alias for `Reg`"] pub type ERASEALL = crate::Reg; #[doc = "Register for erasing all non-volatile user memory."] pub mod eraseall; #[doc = "ERASEPCR0 (rw) register accessor: an alias for `Reg`"] pub type ERASEPCR0 = crate::Reg; #[doc = "Register for erasing a protected non-volatile memory page."] pub mod erasepcr0; #[doc = "ERASEUICR (rw) register accessor: an alias for `Reg`"] pub type ERASEUICR = crate::Reg; #[doc = "Register for start erasing User Information Congfiguration Registers."] pub mod eraseuicr;