Struct flipper0::ffi::SPI_TypeDef

source ·
pub struct SPI_TypeDef {
    pub CR1: u32,
    pub CR2: u32,
    pub SR: u32,
    pub DR: u32,
    pub CRCPR: u32,
    pub RXCRCR: u32,
    pub TXCRCR: u32,
}
Expand description

@brief Serial Peripheral Interface

Fields

CR1: u32

< SPI Control register 1, Address offset: 0x00

CR2: u32

< SPI Control register 2, Address offset: 0x04

SR: u32

< SPI Status register, Address offset: 0x08

DR: u32

< SPI data register, Address offset: 0x0C

CRCPR: u32

< SPI CRC polynomial register, Address offset: 0x10

RXCRCR: u32

< SPI Rx CRC register, Address offset: 0x14

TXCRCR: u32

< SPI Tx CRC register, Address offset: 0x18

Trait Implementations

Formats the value using the given formatter. 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.