#[repr(C)]pub struct Gpio {
pub moder: Moder,
pub otyper: Otyper,
pub ospeedr: Ospeedr,
pub pupdr: Pupdr,
pub idr: Idr,
pub odr: Odr,
pub bsrr: Bsrr,
pub lckr: Lckr,
pub afrl: Afrl,
pub afrh: Afrh,
pub brr: Brr,
}Expand description
Register block
Fields§
§moder: Moder0x00 - GPIO port mode register
otyper: Otyper0x04 - GPIO port output type register
ospeedr: Ospeedr0x08 - GPIO port output speed register
pupdr: Pupdr0x0c - GPIO port pull-up/pull-down register
idr: Idr0x10 - GPIO port input data register
odr: Odr0x14 - GPIO port output data register
bsrr: Bsrr0x18 - GPIO port bit set/reset register
lckr: Lckr0x1c - GPIO port configuration lock register
afrl: Afrl0x20 - GPIO alternate function low register
afrh: Afrh0x24 - GPIO alternate function high register
brr: Brr0x28 - Port bit reset register
Auto Trait Implementations§
impl !Freeze for Gpio
impl !RefUnwindSafe for Gpio
impl Send for Gpio
impl Sync for Gpio
impl Unpin for Gpio
impl UnwindSafe for Gpio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more