Serial peripheral interface (SPI)
20 Serial peripheral interface (SPI)
20.1 SPI Firmware driver registers structures
20.1.1 SPI_TypeDef
SPI_TypeDef is defined in the stm32f30x.h
Data Fields
ï‚· __IO uint16_t CR1
ï‚· uint16_t RESERVED0
ï‚· __IO uint16_t CR2
ï‚· uint16_t RESERVED1
ï‚· __IO uint16_t SR
ï‚· uint16_t RESERVED2
ï‚· __IO uint16_t DR
ï‚· uint16_t RESERVED3
ï‚· __IO uint16_t CRCPR
ï‚· uint16_t RESERVED4
ï‚· __IO uint16_t RXCRCR
ï‚· uint16_t RESERVED5
ï‚· __IO uint16_t TXCRCR
ï‚· uint16_t RESERVED6
ï‚· __IO uint16_t I2SCFGR
ï‚· uint16_t RESERVED7
ï‚· __IO uint16_t I2SPR
ï‚· uint16_t RESERVED8
Field Documentation
ï‚· __IO uint16_t SPI_TypeDef::CR1
ï€ SPI Control register 1 (not used in I2S mode), Address offset: 0x00
ï‚· uint16_t SPI_TypeDef::RESERVED0
ï€ Reserved, 0x02
ï‚· __IO uint16_t SPI_TypeDef::CR2
ï€ SPI Control register 2, Address offset: 0x04
ï‚· uint16_t SPI_TypeDef::RESERVED1
ï€ Reserved, 0x06
ï‚· __IO uint16_t SPI_TypeDef::SR
ï€ SPI Status register, Address offset: 0x08
ï‚· uint16_t SPI_TypeDef::RESERVED2
ï€ Reserved, 0x0A
ï‚· __IO uint16_t SPI_TypeDef::DR
ï€ SPI data register, Address offset: 0x0C
ï‚· uint16_t SPI_TypeDef::RESERVED3
ï€ Reserved, 0x0E
ï‚· __IO uint16_t SPI_TypeDef::CRCPR
ï€ SPI CRC polynomial register (not used in I2S mode), Address offset: 0x10