Struct linux_embedded_hal::Spidev [] [src]

pub struct Spidev(pub Spidev);

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

Methods

impl Spidev
[src]

[src]

See spidev::Spidev::open for details.

Methods from Deref<Target = Spidev>

[src]

Write the provided configuration to this device

[src]

Perform a single transfer

[src]

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

impl Transfer<u8> for Spidev
[src]

Error type

[src]

Sends words to the slave. Returns the words received from the slave

impl Write<u8> for Spidev
[src]

Error type

[src]

Sends words to the slave, ignoring all the incoming words

impl Deref for Spidev
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Spidev
[src]

[src]

Mutably dereferences the value.