PinWrapper

Trait PinWrapper 

Source
pub trait PinWrapper {
    // Required method
    fn is_high(&mut self) -> bool;

    // Provided method
    fn is_low(&mut self) -> bool { ... }
}
Expand description

An abstraction over different switching APIs.

Required Methods§

Source

fn is_high(&mut self) -> bool

Is source on?

Provided Methods§

Source

fn is_low(&mut self) -> bool

Is source off?

Implementors§

Source§

impl<P> PinWrapper for P
where Self: InputPin,

Available on crate feature embedded_hal only.