pub struct ActiveHigh;Expand description
Active-high: LED is on when the pin is High (most common).
Trait Implementations§
Source§impl Polarity for ActiveHigh
impl Polarity for ActiveHigh
Source§const MODE: PolarityMode = PolarityMode::ActiveHigh
const MODE: PolarityMode = PolarityMode::ActiveHigh
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 ActiveHigh
impl RefUnwindSafe for ActiveHigh
impl Send for ActiveHigh
impl Sync for ActiveHigh
impl Unpin for ActiveHigh
impl UnsafeUnpin for ActiveHigh
impl UnwindSafe for ActiveHigh
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