pub struct Pin<'l, PIO: Instance> { /* private fields */ }Expand description
Type representing a PIO pin.
Implementations§
Source§impl<'l, PIO: Instance> Pin<'l, PIO>
impl<'l, PIO: Instance> Pin<'l, PIO>
Sourcepub fn set_drive_strength(&mut self, strength: Drive)
pub fn set_drive_strength(&mut self, strength: Drive)
Set the pin’s drive strength.
Sourcepub fn set_slew_rate(&mut self, slew_rate: SlewRate)
pub fn set_slew_rate(&mut self, slew_rate: SlewRate)
Set the pin’s slew rate.
Sourcepub fn set_schmitt(&mut self, enable: bool)
pub fn set_schmitt(&mut self, enable: bool)
Set the pin’s schmitt trigger.
Sourcepub fn set_output_inversion(&mut self, invert: bool)
pub fn set_output_inversion(&mut self, invert: bool)
Configure the output logic inversion of this pin.
Sourcepub fn set_output_enable_inversion(&mut self, invert: bool)
pub fn set_output_enable_inversion(&mut self, invert: bool)
Configure the output enable inversion of this pin
Sourcepub fn set_input_sync_bypass(&mut self, bypass: bool)
pub fn set_input_sync_bypass(&mut self, bypass: bool)
Set the pin’s input sync bypass.
Prefer Config::set_input_sync_bypass: input_sync_bypass is indexed
relative to the PIO’s GPIOBASE, which is only established by
StateMachine::set_config. If calling this directly (e.g. to clear a
bypass), do so after configuring the state machine.
Panics if the pin is outside the PIO’s current GPIOBASE window.
Sourcepub fn set_input_inversion(&mut self, invert: bool)
pub fn set_input_inversion(&mut self, invert: bool)
Set the pin’s input sync bypass.
Auto Trait Implementations§
impl<'l, PIO> !UnwindSafe for Pin<'l, PIO>
impl<'l, PIO> Freeze for Pin<'l, PIO>where
PhantomData<PIO>: Freeze,
impl<'l, PIO> RefUnwindSafe for Pin<'l, PIO>where
PhantomData<PIO>: RefUnwindSafe,
impl<'l, PIO> Send for Pin<'l, PIO>where
PhantomData<PIO>: Send,
impl<'l, PIO> Sync for Pin<'l, PIO>where
PhantomData<PIO>: Sync,
impl<'l, PIO> Unpin for Pin<'l, PIO>where
PhantomData<PIO>: Unpin,
impl<'l, PIO> UnsafeUnpin for Pin<'l, PIO>where
PhantomData<PIO>: UnsafeUnpin,
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