pub trait GPIOManager: Send {
    // Required methods
    fn setup(&mut self, pin: usize, mode: &GPIOMode) -> Result<(), GPIOError>;
    fn set_pin(
        &mut self,
        pin_id: usize,
        state: &GPIOState
    ) -> Result<(), GPIOError>;
    fn get_pin(&self, pin: usize) -> Result<GPIOState, GPIOError>;
}

Required Methods§

source

fn setup(&mut self, pin: usize, mode: &GPIOMode) -> Result<(), GPIOError>

source

fn set_pin(&mut self, pin_id: usize, state: &GPIOState) -> Result<(), GPIOError>

source

fn get_pin(&self, pin: usize) -> Result<GPIOState, GPIOError>

Implementors§