pub struct ActiveLow;Expand description
Active-low: LED is on when the pin is Low (common on Nucleo, ESP32 boards).
Trait Implementations§
Source§impl Polarity for ActiveLow
impl Polarity for ActiveLow
Source§const MODE: PolarityMode = PolarityMode::ActiveLow
const MODE: PolarityMode = PolarityMode::ActiveLow
The corresponding runtime
PolarityMode.Source§fn physical_on() -> PinState
fn physical_on() -> PinState
Physical pin level corresponding to logical ON (GPIO).
Source§fn physical_off() -> PinState
fn physical_off() -> PinState
Physical pin level corresponding to logical OFF (GPIO).
Source§fn is_logical_on(physical_high: bool) -> bool
fn is_logical_on(physical_high: bool) -> bool
Given a physical high level, return whether the LED is logically ON (GPIO).
Auto Trait Implementations§
impl Freeze for ActiveLow
impl RefUnwindSafe for ActiveLow
impl Send for ActiveLow
impl Sync for ActiveLow
impl Unpin for ActiveLow
impl UnsafeUnpin for ActiveLow
impl UnwindSafe for ActiveLow
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