IOPin

Trait IOPin 

Source
pub trait IOPin {
    type DeviceError;

    // Required methods
    fn set_low(&mut self) -> Result<(), Self::DeviceError>;
    fn set_high(&mut self) -> Result<(), Self::DeviceError>;
    fn is_low(&self) -> bool;
    fn is_high(&self) -> bool;
}
Expand description

Represents a GPIO pin capable of reading and setting the voltage level

Required Associated Types§

Required Methods§

Source

fn set_low(&mut self) -> Result<(), Self::DeviceError>

Source

fn set_high(&mut self) -> Result<(), Self::DeviceError>

Source

fn is_low(&self) -> bool

Source

fn is_high(&self) -> bool

Implementors§