#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - GPIO port mode register"] pub moder: MODER, #[doc = "0x04 - GPIO port output type register"] pub otyper: OTYPER, #[doc = "0x08 - GPIO port output speed register"] pub ospeedr: OSPEEDR, #[doc = "0x0c - GPIO port pull-up/pull-down register"] pub pupdr: PUPDR, #[doc = "0x10 - GPIO port input data register"] pub idr: IDR, #[doc = "0x14 - GPIO port output data register"] pub odr: ODR, #[doc = "0x18 - GPIO port bit set/reset register"] pub bsrr: BSRR, #[doc = "0x1c - GPIO port configuration lock register"] pub lckr: LCKR, #[doc = "0x20 - GPIO alternate function low register"] pub afrl: AFRL, #[doc = "0x24 - GPIO alternate function high register"] pub afrh: AFRH, #[doc = "0x28 - port bit reset register"] pub brr: BRR, } #[doc = "MODER (rw) register accessor: an alias for `Reg`"] pub type MODER = crate::Reg; #[doc = "GPIO port mode register"] pub mod moder; #[doc = "OTYPER (rw) register accessor: an alias for `Reg`"] pub type OTYPER = crate::Reg; #[doc = "GPIO port output type register"] pub mod otyper; #[doc = "OSPEEDR (rw) register accessor: an alias for `Reg`"] pub type OSPEEDR = crate::Reg; #[doc = "GPIO port output speed register"] pub mod ospeedr; #[doc = "PUPDR (rw) register accessor: an alias for `Reg`"] pub type PUPDR = crate::Reg; #[doc = "GPIO port pull-up/pull-down register"] pub mod pupdr; #[doc = "IDR (r) register accessor: an alias for `Reg`"] pub type IDR = crate::Reg; #[doc = "GPIO port input data register"] pub mod idr; #[doc = "ODR (rw) register accessor: an alias for `Reg`"] pub type ODR = crate::Reg; #[doc = "GPIO port output data register"] pub mod odr; #[doc = "BSRR (w) register accessor: an alias for `Reg`"] pub type BSRR = crate::Reg; #[doc = "GPIO port bit set/reset register"] pub mod bsrr; #[doc = "LCKR (rw) register accessor: an alias for `Reg`"] pub type LCKR = crate::Reg; #[doc = "GPIO port configuration lock register"] pub mod lckr; #[doc = "AFRL (rw) register accessor: an alias for `Reg`"] pub type AFRL = crate::Reg; #[doc = "GPIO alternate function low register"] pub mod afrl; #[doc = "AFRH (rw) register accessor: an alias for `Reg`"] pub type AFRH = crate::Reg; #[doc = "GPIO alternate function high register"] pub mod afrh; #[doc = "BRR (w) register accessor: an alias for `Reg`"] pub type BRR = crate::Reg; #[doc = "port bit reset register"] pub mod brr;