Trait ectool::Spi[][src]

pub trait Spi {
    fn target(&self) -> SpiTarget;
unsafe fn reset(&mut self) -> Result<(), Error>;
unsafe fn read(&mut self, data: &mut [u8]) -> Result<usize, Error>;
unsafe fn write(&mut self, data: &[u8]) -> Result<usize, Error>; }

SPI bus transactions

Required methods

fn target(&self) -> SpiTarget[src]

Return the target of the SPI bus

unsafe fn reset(&mut self) -> Result<(), Error>[src]

Reset the SPI bus

unsafe fn read(&mut self, data: &mut [u8]) -> Result<usize, Error>[src]

Read data from the SPI bus

unsafe fn write(&mut self, data: &[u8]) -> Result<usize, Error>[src]

Write data to the SPI bus

Loading content...

Implementors

Loading content...