Struct stm32f4xx_hal::spi::Spi[][src]

pub struct Spi<SPI, PINS, TRANSFER_MODE> { /* fields omitted */ }

Implementations

👎 Deprecated since 0.10.0:

Please use new instead

👎 Deprecated since 0.10.0:

Please use new instead

👎 Deprecated since 0.10.0:

Please use new instead

👎 Deprecated since 0.10.0:

Please use new instead

👎 Deprecated since 0.10.0:

Please use new instead

👎 Deprecated since 0.10.0:

Please use new instead

👎 Deprecated since 0.10.0:

Please use release instead

Enable/disable spi

Pre initializing the SPI bus.

Enable interrupts for the given event:

  • Received data ready to be read (RXNE)
  • Transmit data register empty (TXE)
  • Transfer error

Disable interrupts for the given event:

  • Received data ready to be read (RXNE)
  • Transmit data register empty (TXE)
  • Transfer error

Return true if the TXE flag is set, i.e. new data to transmit can be written to the SPI.

Return true if the RXNE flag is set, i.e. new data has been received and can be read from the SPI.

Return true if the MODF flag is set, i.e. the SPI has experienced a Master Mode Fault. (see chapter 28.3.10 of the STM32F4 Reference Manual)

Return true if the OVR flag is set, i.e. new data has been received while the receive data register was already filled.

Trait Implementations

Formats the value using the given formatter. Read more

An enumeration of SPI errors

Reads the word stored in the shift register Read more

Sends a word to the slave

An enumeration of SPI errors

Reads the word stored in the shift register Read more

Sends a word to the slave

Associated error type

Execute the provided transactions

Error type

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

Error type

Sends words to the slave, ignoring all the incoming words

Error type

Sends words to the slave, ignoring all the incoming words

Error type

Sends words to the slave, ignoring all the incoming words

Error type

Sends 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.

Should always be Self

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.