#[repr(C)]pub struct RegisterBlock {
pub moder: u32,
pub otyper: u32,
pub ospeedr: u32,
pub pupdr: u32,
pub idr: u32,
pub odr: u32,
pub bsrr: u32,
pub lckr: u32,
pub afrl: u32,
pub afrh: u32,
}Fields§
§moder: u32§otyper: u32§ospeedr: u32§pupdr: u32§idr: u32§odr: u32§bsrr: u32§lckr: u32§afrl: u32§afrh: u32Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub fn set_pin_mode(&mut self, pin: u8, mode: GpioMode)
pub fn set_pin_mode(&mut self, pin: u8, mode: GpioMode)
Configure a pin mode
Sourcepub fn set_pin_output_type(&mut self, pin: u8, output_type: GpioOutputType)
pub fn set_pin_output_type(&mut self, pin: u8, output_type: GpioOutputType)
Set pin output type
Sourcepub fn set_pin_speed(&mut self, pin: u8, speed: GpioSpeed)
pub fn set_pin_speed(&mut self, pin: u8, speed: GpioSpeed)
Set pin speed
Sourcepub fn set_pin_pull(&mut self, pin: u8, pull: GpioPull)
pub fn set_pin_pull(&mut self, pin: u8, pull: GpioPull)
Set pin pull-up/pull-down
Sourcepub fn toggle_pin(&mut self, pin: u8)
pub fn toggle_pin(&mut self, pin: u8)
Toggle pin output value
Auto Trait Implementations§
impl Freeze for RegisterBlock
impl RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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