Skip to main content

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?

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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

Available on crate feature embedded_hal only.