pub struct PartiallyErasedPin<const P: char, MODE> { /* private fields */ }
Expand description
Partially erased pin
MODE
is one of the pin modes (see Modes section).P
is port name:A
for GPIOA,B
for GPIOB, etc.
Implementations§
Source§impl<const P: char, MODE: PinMode> PartiallyErasedPin<P, MODE>
impl<const P: char, MODE: PinMode> PartiallyErasedPin<P, MODE>
Sourcepub fn into_mode<M: PinMode>(self) -> PartiallyErasedPin<P, M>
pub fn into_mode<M: PinMode>(self) -> PartiallyErasedPin<P, M>
Converts pin into specified mode
Source§impl<const P: char, MODE> PartiallyErasedPin<P, MODE>
impl<const P: char, MODE> PartiallyErasedPin<P, MODE>
Source§impl<const P: char, MODE> PartiallyErasedPin<P, Output<MODE>>
impl<const P: char, MODE> PartiallyErasedPin<P, Output<MODE>>
Sourcepub fn set_state(&mut self, state: PinState)
pub fn set_state(&mut self, state: PinState)
Drives the pin high or low depending on the provided value
Sourcepub fn is_set_high(&self) -> bool
pub fn is_set_high(&self) -> bool
Is the pin in drive high mode?
Sourcepub fn is_set_low(&self) -> bool
pub fn is_set_low(&self) -> bool
Is the pin in drive low mode?
Trait Implementations§
Source§impl<const P: char, MODE> Debug for PartiallyErasedPin<P, MODE>
impl<const P: char, MODE> Debug for PartiallyErasedPin<P, MODE>
Source§impl<const P: char, MODE> ErrorType for PartiallyErasedPin<P, MODE>
impl<const P: char, MODE> ErrorType for PartiallyErasedPin<P, MODE>
Source§type Error = Infallible
type Error = Infallible
Error type
Source§impl<const P: char, MODE> Format for PartiallyErasedPin<P, MODE>
impl<const P: char, MODE> Format for PartiallyErasedPin<P, MODE>
Source§impl<const P: char, MODE> InputPin for PartiallyErasedPin<P, MODE>where
MODE: Readable,
impl<const P: char, MODE> InputPin for PartiallyErasedPin<P, MODE>where
MODE: Readable,
Source§impl<const P: char, MODE> InputPin for PartiallyErasedPin<P, MODE>where
MODE: Readable,
impl<const P: char, MODE> InputPin for PartiallyErasedPin<P, MODE>where
MODE: Readable,
Source§impl<const P: char, MODE> OutputPin for PartiallyErasedPin<P, Output<MODE>>
impl<const P: char, MODE> OutputPin for PartiallyErasedPin<P, Output<MODE>>
Source§type Error = Infallible
type Error = Infallible
Error type
Source§impl<const P: char, MODE> PinExt for PartiallyErasedPin<P, MODE>
impl<const P: char, MODE> PinExt for PartiallyErasedPin<P, MODE>
Source§impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MODE>>
impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MODE>>
Source§impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MODE>>
impl<const P: char, MODE> StatefulOutputPin for PartiallyErasedPin<P, Output<MODE>>
Auto Trait Implementations§
impl<const P: char, MODE> Freeze for PartiallyErasedPin<P, MODE>
impl<const P: char, MODE> RefUnwindSafe for PartiallyErasedPin<P, MODE>where
MODE: RefUnwindSafe,
impl<const P: char, MODE> Send for PartiallyErasedPin<P, MODE>where
MODE: Send,
impl<const P: char, MODE> Sync for PartiallyErasedPin<P, MODE>where
MODE: Sync,
impl<const P: char, MODE> Unpin for PartiallyErasedPin<P, MODE>where
MODE: Unpin,
impl<const P: char, MODE> UnwindSafe for PartiallyErasedPin<P, MODE>where
MODE: UnwindSafe,
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