Struct gd32f1x0_hal::pac::gpiod::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub ctl: Reg<CTL_SPEC>,
pub omode: Reg<OMODE_SPEC>,
pub ospd: Reg<OSPD_SPEC>,
pub pud: Reg<PUD_SPEC>,
pub istat: Reg<ISTAT_SPEC>,
pub octl: Reg<OCTL_SPEC>,
pub bop: Reg<BOP_SPEC>,
pub bc: Reg<BC_SPEC>,
pub tg: Reg<TG_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
ctl: Reg<CTL_SPEC>
0x00 - GPIO port control register
omode: Reg<OMODE_SPEC>
0x04 - GPIO port output type register
ospd: Reg<OSPD_SPEC>
0x08 - GPIO port output speed register
pud: Reg<PUD_SPEC>
0x0c - GPIO port pull-up/pull-down register
istat: Reg<ISTAT_SPEC>
0x10 - GPIO port input data register
octl: Reg<OCTL_SPEC>
0x14 - GPIO port output data register
bop: Reg<BOP_SPEC>
0x18 - GPIO port bit set/reset register
bc: Reg<BC_SPEC>
0x28 - Port bit reset register
tg: Reg<TG_SPEC>
0x2c - Port bit toggle 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