Trait Spi
Source pub trait Spi {
// Required methods
fn init(
&mut self,
port: u32,
baud: u32,
mosi: i32,
miso: i32,
sck: i32,
cs: i32,
) -> Result<Dev, Error>;
fn deinit(&mut self, handle: i32) -> Result<(), Error>;
fn read<'a>(&mut self, handle: i32, read: &Rbytes<'a>) -> Result<(), Error>;
fn write<'a>(&mut self, handle: i32, data: &Wbytes<'a>) -> Result<(), Error>;
fn transfer<'a>(
&mut self,
handle: i32,
read: &Rbytes<'a>,
write: &Wbytes<'a>,
) -> Result<(), Error>;
fn transfer_inplace<'a>(
&mut self,
handle: i32,
data: &Rbytes<'a>,
) -> Result<(), Error>;
fn exec<'a>(&mut self, handle: i32, data: &OpArray<'a>) -> Result<(), Error>;
}