Struct nrf51_hal::Spi[][src]

pub struct Spi<T>(_);
Expand description

Interface to a SPI instance.

Implementations

Return the raw interface to the underlying SPI peripheral.

Trait Implementations

Must only be called after send as the interface will read and write at the same time.

Must only be called the same number of times as read.

nRF51 is double buffered; two bytes can be written before data must be read.

An enumeration of SPI errors

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

OverflowingCasts the value.

Should always be Self

Casts the value.

Casts the value.

Error type

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

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.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.

Error type

Sends words to the slave, ignoring all the incoming words

Error type

Sends words to the slave, ignoring all the incoming words