35#ifdef HAL_SPI_MODULE_ENABLED
82 count += (uint8_t)4UL;
162 uint32_t UnderrunBehaviour)
#define __IO
Defines 'read / write' permissions.
#define SET_BIT(REG, BIT)
#define MODIFY_REG(REG, CLEARMASK, SETMASK)
#define IS_SPI_HIGHEND_INSTANCE(INSTANCE)
#define SPI_CR1_IOLOCK
Locking the AF configuration of associated IOs.
#define SPI_CFG1_UDRDET
UDRDET[1:0]: Detection of underrun condition.
#define SPI_CR1_SPE
Serial Peripheral Enable.
#define SPI_CFG1_UDRCFG
UDRCFG[1:0]: Behavior of transmitter at underrun.
HAL_StatusTypeDef HAL_SPIEx_ConfigureUnderrun(SPI_HandleTypeDef *hspi, uint32_t UnderrunDetection, uint32_t UnderrunBehaviour)
HAL_StatusTypeDef HAL_SPIEx_FlushRxFifo(const SPI_HandleTypeDef *hspi)
HAL_StatusTypeDef HAL_SPIEx_EnableLockConfiguration(SPI_HandleTypeDef *hspi)
#define __HAL_SPI_ENABLE(__HANDLE__)
Enable the SPI peripheral.
#define __HAL_SPI_DISABLE(__HANDLE__)
Disable the SPI peripheral.
struct __SPI_HandleTypeDef SPI_HandleTypeDef
SPI handle Structure definition.
@ HAL_SPI_STATE_READY
Peripheral Initialized and ready for use.
#define SPI_HIGHEND_FIFO_SIZE
#define SPI_LOWEND_FIFO_SIZE
#define IS_SPI_UNDERRUN_DETECTION(MODE)
#define IS_SPI_UNDERRUN_BEHAVIOUR(MODE)
#define SPI_RX_FIFO_0PACKET
size_type count(const key_type &key) const
This file contains all the functions prototypes for the HAL module driver.
#define assert_param(expr)
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code.
HAL_StatusTypeDef
HAL Status structures definition.
#define __HAL_UNLOCK(__HANDLE__)
#define __HAL_LOCK(__HANDLE__)
uint32_t Mode
Specifies the SPI operating mode.
__IO uint32_t RXDR
SPI/I2S Receive data register, Address offset: 0x30.
__IO uint32_t CFG1
SPI Configuration register 1, Address offset: 0x08.
__IO uint32_t SR
SPI/I2S Status register, Address offset: 0x14.
__IO uint32_t CR1
SPI/I2S Control register 1, Address offset: 0x00.
SPI_InitTypeDef Init
SPI communication parameters.
SPI_TypeDef * Instance
SPI registers base address.
__IO HAL_SPI_StateTypeDef State
SPI communication state.