#[repr(transparent)]pub struct GpioCtrl(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl GpioCtrl
impl GpioCtrl
Sourcepub const fn set_slewfast(&mut self, val: bool)
pub const fn set_slewfast(&mut self, val: bool)
Slew rate control. 1 = Fast, 0 = Slow
Sourcepub const fn set_schmitt(&mut self, val: bool)
pub const fn set_schmitt(&mut self, val: bool)
Enable schmitt trigger
Sourcepub const fn od(&self) -> bool
pub const fn od(&self) -> bool
Output disable. Has priority over output enable from peripherals
Sourcepub const fn set_od(&mut self, val: bool)
pub const fn set_od(&mut self, val: bool)
Output disable. Has priority over output enable from peripherals
Trait Implementations§
impl Copy for GpioCtrl
impl Eq for GpioCtrl
impl StructuralPartialEq for GpioCtrl
Auto Trait Implementations§
impl Freeze for GpioCtrl
impl RefUnwindSafe for GpioCtrl
impl Send for GpioCtrl
impl Sync for GpioCtrl
impl Unpin for GpioCtrl
impl UnwindSafe for GpioCtrl
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