Struct stm32l4xx_hal::device::gpioc::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub moder: Reg<MODER_SPEC>,
pub otyper: Reg<OTYPER_SPEC>,
pub ospeedr: Reg<OSPEEDR_SPEC>,
pub pupdr: Reg<PUPDR_SPEC>,
pub idr: Reg<IDR_SPEC>,
pub odr: Reg<ODR_SPEC>,
pub bsrr: Reg<BSRR_SPEC>,
pub lckr: Reg<LCKR_SPEC>,
pub afrl: Reg<AFRL_SPEC>,
pub afrh: Reg<AFRH_SPEC>,
}
Expand description
Register block
Fields
moder: Reg<MODER_SPEC>
0x00 - GPIO port mode register
otyper: Reg<OTYPER_SPEC>
0x04 - GPIO port output type register
ospeedr: Reg<OSPEEDR_SPEC>
0x08 - GPIO port output speed register
pupdr: Reg<PUPDR_SPEC>
0x0c - GPIO port pull-up/pull-down register
idr: Reg<IDR_SPEC>
0x10 - GPIO port input data register
odr: Reg<ODR_SPEC>
0x14 - GPIO port output data register
bsrr: Reg<BSRR_SPEC>
0x18 - GPIO port bit set/reset register
lckr: Reg<LCKR_SPEC>
0x1c - GPIO port configuration lock register
afrl: Reg<AFRL_SPEC>
0x20 - GPIO alternate function low register
afrh: Reg<AFRH_SPEC>
0x24 - GPIO alternate function high register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more