Struct linux_embedded_hal::Spidev [−][src]
pub struct Spidev(pub Spidev);
Expand description
Newtype around spidev::Spidev
that implements the embedded-hal
traits
Tuple Fields
0: Spidev
Implementations
Methods from Deref<Target = Spidev>
Write the provided configuration to this device
Perform a single transfer
pub fn transfer_multiple(
&self,
transfers: &mut [spi_ioc_transfer<'_, '_>]
) -> Result<(), Error>
pub fn transfer_multiple(
&self,
transfers: &mut [spi_ioc_transfer<'_, '_>]
) -> Result<(), Error>
Perform multiple transfers in a single system call to the kernel
Chaining together multiple requests like this can reduce latency and be used for conveniently and efficient implementing some protocols without extra round trips back to userspace.