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