Struct driver_pal::hal::linux::Spidev[][src]

pub struct Spidev(pub Spidev);
Expand description

Newtype around spidev::Spidev that implements the embedded-hal traits

Tuple Fields

0: Spidev

Implementations

See spidev::Spidev::open for details.

Methods from Deref<Target = Spidev>

Get a reference to the underlying File object

Write the provided configuration to this device

Perform a single transfer

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.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Transactional implementation batches SPI operations into a single transaction

Associated error type

Execute the provided transactions

Error type

Writes and reads simultaneously. The contents of words are written to the slave, and the received words are stored into the same words buffer, overwriting it. Read more

Error type

Writes words to the slave, ignoring all the incoming words

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.