Struct stm32f4xx_hal::gpio::PartiallyErasedPin
source · 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>
§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>>
§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>>
source§impl<const P: char, MODE> ToggleableOutputPin for PartiallyErasedPin<P, Output<MODE>>
impl<const P: char, MODE> ToggleableOutputPin for PartiallyErasedPin<P, Output<MODE>>
Auto Trait Implementations§
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