TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library defines. More...

Macros

#define TM_SPI1_PRESCALER   SPI_BAUDRATEPRESCALER_32
 
#define TM_SPI1_DATASIZE   SPI_DATASIZE_8BIT
 
#define TM_SPI1_FIRSTBIT   SPI_FIRSTBIT_MSB
 
#define TM_SPI1_MASTERSLAVE   SPI_MODE_MASTER
 
#define TM_SPI1_MODE   TM_SPI_Mode_0
 
#define TM_SPI2_PRESCALER   SPI_BAUDRATEPRESCALER_32
 
#define TM_SPI2_DATASIZE   SPI_DATASIZE_8BIT
 
#define TM_SPI2_FIRSTBIT   SPI_FIRSTBIT_MSB
 
#define TM_SPI2_MASTERSLAVE   SPI_MODE_MASTER
 
#define TM_SPI2_MODE   TM_SPI_Mode_0
 
#define TM_SPI3_PRESCALER   SPI_BAUDRATEPRESCALER_32
 
#define TM_SPI3_DATASIZE   SPI_DATASIZE_8BIT
 
#define TM_SPI3_FIRSTBIT   SPI_FIRSTBIT_MSB
 
#define TM_SPI3_MASTERSLAVE   SPI_MODE_MASTER
 
#define TM_SPI3_MODE   TM_SPI_Mode_0
 
#define TM_SPI4_PRESCALER   SPI_BAUDRATEPRESCALER_32
 
#define TM_SPI4_DATASIZE   SPI_DATASIZE_8BIT
 
#define TM_SPI4_FIRSTBIT   SPI_FIRSTBIT_MSB
 
#define TM_SPI4_MASTERSLAVE   SPI_MODE_MASTER
 
#define TM_SPI4_MODE   TM_SPI_Mode_0
 
#define TM_SPI5_PRESCALER   SPI_BAUDRATEPRESCALER_32
 
#define TM_SPI5_DATASIZE   SPI_DATASIZE_8BIT
 
#define TM_SPI5_FIRSTBIT   SPI_FIRSTBIT_MSB
 
#define TM_SPI5_MASTERSLAVE   SPI_MODE_MASTER
 
#define TM_SPI5_MODE   TM_SPI_Mode_0
 
#define TM_SPI6_PRESCALER   SPI_BAUDRATEPRESCALER_32
 
#define TM_SPI6_DATASIZE   SPI_DATASIZE_8BIT
 
#define TM_SPI6_FIRSTBIT   SPI_FIRSTBIT_MSB
 
#define TM_SPI6_MASTERSLAVE   SPI_MODE_MASTER
 
#define TM_SPI6_MODE   TM_SPI_Mode_0
 
#define SPI_IS_BUSY(SPIx)    (((SPIx)->SR & (SPI_SR_TXE | SPI_SR_RXNE)) == 0)
 Check SPI busy status.
 
#define SPI_WAIT_TX(SPIx)    while ((SPIx->SR & SPI_FLAG_TXE) == 0 || (SPIx->SR & SPI_FLAG_BSY))
 SPI wait till end.
 
#define SPI_WAIT_RX(SPIx)    while ((SPIx->SR & SPI_FLAG_RXNE) == 0 || (SPIx->SR & SPI_FLAG_BSY))
 
#define SPI_CHECK_ENABLED(SPIx)    if (!((SPIx)->CR1 & SPI_CR1_SPE)) {return;}
 Checks if SPI is enabled.
 
#define SPI_CHECK_ENABLED_RESP(SPIx, val)    if (!((SPIx)->CR1 & SPI_CR1_SPE)) {return (val);}
 Checks if SPI is enabled and returns value from function if not.
 

Detailed Description

Library defines.