pub struct ExclusiveDevice<BUS, CS> { /* private fields */ }
Expand description

SpiDevice implementation with exclusive access to the bus (not shared).

This is the most straightforward way of obtaining an SpiDevice from an SpiBus, ideal for when no sharing is required (only one SPI device is present on the bus).

Implementations

Create a new ExclusiveDevice

Trait Implementations

Error type

SPI Bus type for this device.

Perform a transaction against the device. Read more

Do a write within a transaction. Read more

Do a read within a transaction. Read more

Do a transfer within a transaction. Read more

Do an in-place transfer within a transaction. Read more

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.