Struct driver_pal::wrapper::Wrapper[][src]

pub struct Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> { /* fields omitted */ }
Expand description

Wrapper provides a wrapper around an SPI object with Chip Select management

Implementations

Create a new wrapper with the provided chip select pin

Explicitly fetch the inner spi (non-CS controlling) object

(note that deref is also implemented for this)

Trait Implementations

Busy pin implementation for inner objects implementing Busy

Fetch the busy pin state

Enumeration of DelayMs errors

Pauses execution for ms milliseconds

Enumeration of DelayMs errors

Pauses execution for us microseconds

Ready pin implementation for inner object implementing Ready

Fetch the ready pin state

Reset pin implementation for inner objects implementing Reset

Set the reset pin state

spi::Transactional implementation managing CS pin

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

spi::Write implementation managing the CS pin

Error type

Writes words to the slave, ignoring all the incoming words

ManagedChipSelect indicates wrapper controls CS line

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.