STM8S/A Standard Peripherals Drivers: SPI_Registers_Bits_Definition

STM8S/A

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_BR   ((uint8_t)0x38)

Baud rate control mask

Definition at line 1732 of file stm8s.h.

#define SPI_CR1_CPHA   ((uint8_t)0x01)

Clock Phase mask

Definition at line 1735 of file stm8s.h.

#define SPI_CR1_CPOL   ((uint8_t)0x02)

Clock Polarity mask

Definition at line 1734 of file stm8s.h.

#define SPI_CR1_LSBFIRST   ((uint8_t)0x80)

Frame format mask

Definition at line 1730 of file stm8s.h.

#define SPI_CR1_MSTR   ((uint8_t)0x04)

Master Selection mask

Definition at line 1733 of file stm8s.h.

#define SPI_CR1_SPE   ((uint8_t)0x40)

Enable bits mask

Definition at line 1731 of file stm8s.h.

Referenced by SPI_Cmd().

#define SPI_CR2_BDM   ((uint8_t)0x80)

Bi-directional data mode enable mask

Definition at line 1737 of file stm8s.h.

#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)

Transmit CRC next mask

Definition at line 1740 of file stm8s.h.

Referenced by SPI_TransmitCRC().

#define SPI_CR2_RXONLY   ((uint8_t)0x04)

Receive only mask

Definition at line 1741 of file stm8s.h.

#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)

Software slave management mask

Definition at line 1742 of file stm8s.h.

#define SPI_ICR_ERRIE   ((uint8_t)0x20)

Error interrupt enable mask

Definition at line 1747 of file stm8s.h.

#define SPI_ICR_RXEI   ((uint8_t)0x40)

Rx buffer empty interrupt enable mask

Definition at line 1746 of file stm8s.h.

#define SPI_ICR_TXEI   ((uint8_t)0x80)

Tx buffer empty interrupt enable mask

Definition at line 1745 of file stm8s.h.

#define SPI_ICR_WKIE   ((uint8_t)0x10)

Wake-up interrupt enable mask

Definition at line 1748 of file stm8s.h.

#define SPI_SR_BSY   ((uint8_t)0x80)

Busy flag

Definition at line 1750 of file stm8s.h.

#define SPI_SR_CRCERR   ((uint8_t)0x10)

CRC error flag

Definition at line 1753 of file stm8s.h.

#define SPI_SR_MODF   ((uint8_t)0x20)

Mode fault

Definition at line 1752 of file stm8s.h.

#define SPI_SR_OVR   ((uint8_t)0x40)

Overrun flag

Definition at line 1751 of file stm8s.h.

#define SPI_SR_RXNE   ((uint8_t)0x01)

Receive buffer not empty

Definition at line 1756 of file stm8s.h.

#define SPI_SR_TXE   ((uint8_t)0x02)

Transmit buffer empty

Definition at line 1755 of file stm8s.h.

#define SPI_SR_WKUP   ((uint8_t)0x08)

Wake-Up flag

Definition at line 1754 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com