#[repr(C)]pub struct RegisterBlock {
pub crl: Reg<CRL_SPEC>,
pub crh: Reg<CRH_SPEC>,
pub idr: Reg<IDR_SPEC>,
pub odr: Reg<ODR_SPEC>,
pub bsrr: Reg<BSRR_SPEC>,
pub brr: Reg<BRR_SPEC>,
pub lckr: Reg<LCKR_SPEC>,
}
Expand description
Register block
Fields
crl: Reg<CRL_SPEC>
0x00 - Port configuration register low (GPIOn_CRL)
crh: Reg<CRH_SPEC>
0x04 - Port configuration register high (GPIOn_CRL)
idr: Reg<IDR_SPEC>
0x08 - Port input data register (GPIOn_IDR)
odr: Reg<ODR_SPEC>
0x0c - Port output data register (GPIOn_ODR)
bsrr: Reg<BSRR_SPEC>
0x10 - Port bit set/reset register (GPIOn_BSRR)
brr: Reg<BRR_SPEC>
0x14 - Port bit reset register (GPIOn_BRR)
lckr: Reg<LCKR_SPEC>
0x18 - Port configuration lock 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