Skip to main content

Spi

Trait Spi 

Source
pub trait Spi {
    // Required method
    fn transfer(
        &mut self,
        addr: I2cAddr,
        tx: &[u8],
        rx_len: usize,
    ) -> Result<Vec<u8>, String>;
}

Required Methods§

Source

fn transfer( &mut self, addr: I2cAddr, tx: &[u8], rx_len: usize, ) -> Result<Vec<u8>, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§