STM8S/A Standard Peripherals Drivers
|
SPI_Registers_Bits_Definition
Defines | |
#define | SPI_CR1_BR ((uint8_t)0x38) |
#define | SPI_CR1_CPHA ((uint8_t)0x01) |
#define | SPI_CR1_CPOL ((uint8_t)0x02) |
#define | SPI_CR1_LSBFIRST ((uint8_t)0x80) |
#define | SPI_CR1_MSTR ((uint8_t)0x04) |
#define | SPI_CR1_SPE ((uint8_t)0x40) |
#define | SPI_CR2_BDM ((uint8_t)0x80) |
#define | SPI_CR2_BDOE ((uint8_t)0x40) |
#define | SPI_CR2_CRCEN ((uint8_t)0x20) |
#define | SPI_CR2_CRCNEXT ((uint8_t)0x10) |
#define | SPI_CR2_RXONLY ((uint8_t)0x04) |
#define | SPI_CR2_SSI ((uint8_t)0x01) |
#define | SPI_CR2_SSM ((uint8_t)0x02) |
#define | SPI_ICR_ERRIE ((uint8_t)0x20) |
#define | SPI_ICR_RXEI ((uint8_t)0x40) |
#define | SPI_ICR_TXEI ((uint8_t)0x80) |
#define | SPI_ICR_WKIE ((uint8_t)0x10) |
#define | SPI_SR_BSY ((uint8_t)0x80) |
#define | SPI_SR_CRCERR ((uint8_t)0x10) |
#define | SPI_SR_MODF ((uint8_t)0x20) |
#define | SPI_SR_OVR ((uint8_t)0x40) |
#define | SPI_SR_RXNE ((uint8_t)0x01) |
#define | SPI_SR_TXE ((uint8_t)0x02) |
#define | SPI_SR_WKUP ((uint8_t)0x08) |
Define Documentation
#define SPI_CR1_SPE ((uint8_t)0x40) |
#define SPI_CR2_BDM ((uint8_t)0x80) |
#define SPI_CR2_BDOE ((uint8_t)0x40) |
Output enable in bi-directional mode mask
Definition at line 1738 of file stm8s.h.
Referenced by SPI_BiDirectionalLineConfig().
#define SPI_CR2_CRCEN ((uint8_t)0x20) |
Hardware CRC calculation enable mask
Definition at line 1739 of file stm8s.h.
Referenced by SPI_CalculateCRCCmd().
#define SPI_CR2_CRCNEXT ((uint8_t)0x10) |
#define SPI_CR2_SSI ((uint8_t)0x01) |
Internal slave select mask
Definition at line 1743 of file stm8s.h.
Referenced by SPI_Init(), and SPI_NSSInternalSoftwareCmd().
#define SPI_CR2_SSM ((uint8_t)0x02) |
#define SPI_ICR_ERRIE ((uint8_t)0x20) |
#define SPI_ICR_RXEI ((uint8_t)0x40) |
#define SPI_ICR_TXEI ((uint8_t)0x80) |
#define SPI_ICR_WKIE ((uint8_t)0x10) |
#define SPI_SR_RXNE ((uint8_t)0x01) |