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>

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.
Error type
Sends words to the slave. Returns the words received from the slave
Error type
Sends 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.