Enum driver_pal::hal::HalSpi[][src]

pub enum HalSpi {
    Linux(Spidev),
    Cp2130(Spi),
}
Expand description

SPI hal wrapper

Variants

Linux(Spidev)

Tuple Fields of Linux

0: Spidev
Cp2130(Spi)

Tuple Fields of Cp2130

0: Spi

Trait Implementations

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

Error type

Writes 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

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.