#[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 afsel0: Reg<AFSEL0_SPEC>, pub afsel1: Reg<AFSEL1_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

afsel0: Reg<AFSEL0_SPEC>

0x20 - GPIO alternate function low register

afsel1: Reg<AFSEL1_SPEC>

0x24 - GPIO alternate function register 1

bc: Reg<BC_SPEC>

0x28 - Port bit reset register

tg: Reg<TG_SPEC>

0x2c - Port bit toggle register

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.