Struct spidev::spidevioctl::SpidevTransfer [] [src]

pub struct SpidevTransfer {
    pub tx_buf: Option<Box<[u8]>>,
    pub rx_buf: Option<Box<[u8]>>,
    // some fields omitted
}

Representation of a spidev transfer that is shared with external users

Fields

tx_buf
rx_buf

Methods

impl SpidevTransfer

fn read(length: usize) -> SpidevTransfer

fn write(tx_buf: &[u8]) -> SpidevTransfer

Trait Implementations

Derived Implementations

impl Default for SpidevTransfer

fn default() -> SpidevTransfer