STM8L15x Standard Peripherals Drivers: SPI_Registers_Bits_Definition

STM8L15x/16x Standard Peripherals Drivers

STM8L15x 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_CR3_ERRIE   ((uint8_t)0x20)
#define SPI_CR3_RXDMAEN   ((uint8_t)0x01)
#define SPI_CR3_RXIE   ((uint8_t)0x40)
#define SPI_CR3_TXDMAEN   ((uint8_t)0x02)
#define SPI_CR3_TXIE   ((uint8_t)0x80)
#define SPI_CR3_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 1654 of file stm8l15x.h.

#define SPI_CR1_CPHA   ((uint8_t)0x01)

Clock Phase mask

Definition at line 1657 of file stm8l15x.h.

#define SPI_CR1_CPOL   ((uint8_t)0x02)

Clock Polarity mask

Definition at line 1656 of file stm8l15x.h.

#define SPI_CR1_LSBFIRST   ((uint8_t)0x80)

Frame format mask

Definition at line 1652 of file stm8l15x.h.

#define SPI_CR1_MSTR   ((uint8_t)0x04)

Master Selection mask

Definition at line 1655 of file stm8l15x.h.

#define SPI_CR1_SPE   ((uint8_t)0x40)

Enable bits mask

Definition at line 1653 of file stm8l15x.h.

Referenced by SPI_Cmd().

#define SPI_CR2_BDM   ((uint8_t)0x80)

Bi-directional data mode enable mask

Definition at line 1659 of file stm8l15x.h.

#define SPI_CR2_BDOE   ((uint8_t)0x40)

Output enable in bi-directional mode mask

Definition at line 1660 of file stm8l15x.h.

Referenced by SPI_BiDirectionalLineConfig().

#define SPI_CR2_CRCEN   ((uint8_t)0x20)

Hardware CRC calculation enable mask

Definition at line 1661 of file stm8l15x.h.

Referenced by SPI_CalculateCRCCmd().

#define SPI_CR2_CRCNEXT   ((uint8_t)0x10)

Transmit CRC next mask

Definition at line 1662 of file stm8l15x.h.

Referenced by SPI_TransmitCRC().

#define SPI_CR2_RXONLY   ((uint8_t)0x04)

Receive only mask

Definition at line 1663 of file stm8l15x.h.

#define SPI_CR2_SSI   ((uint8_t)0x01)

Internal slave select mask

Definition at line 1665 of file stm8l15x.h.

Referenced by SPI_Init(), and SPI_NSSInternalSoftwareCmd().

#define SPI_CR2_SSM   ((uint8_t)0x02)

Software slave management mask

Definition at line 1664 of file stm8l15x.h.

#define SPI_CR3_ERRIE   ((uint8_t)0x20)

Error interrupt enable mask

Definition at line 1669 of file stm8l15x.h.

#define SPI_CR3_RXDMAEN   ((uint8_t)0x01)

Rx Buffer DMA enable mask

Definition at line 1672 of file stm8l15x.h.

#define SPI_CR3_RXIE   ((uint8_t)0x40)

Rx buffer empty interrupt enable mask

Definition at line 1668 of file stm8l15x.h.

#define SPI_CR3_TXDMAEN   ((uint8_t)0x02)

Tx Buffer DMA enable mask

Definition at line 1671 of file stm8l15x.h.

#define SPI_CR3_TXIE   ((uint8_t)0x80)

Tx buffer empty interrupt enable mask

Definition at line 1667 of file stm8l15x.h.

#define SPI_CR3_WKIE   ((uint8_t)0x10)

Wake-up interrupt enable mask

Definition at line 1670 of file stm8l15x.h.

#define SPI_SR_BSY   ((uint8_t)0x80)

Busy flag

Definition at line 1674 of file stm8l15x.h.

#define SPI_SR_CRCERR   ((uint8_t)0x10)

CRC error flag

Definition at line 1677 of file stm8l15x.h.

#define SPI_SR_MODF   ((uint8_t)0x20)

Mode fault

Definition at line 1676 of file stm8l15x.h.

#define SPI_SR_OVR   ((uint8_t)0x40)

Overrun flag

Definition at line 1675 of file stm8l15x.h.

#define SPI_SR_RXNE   ((uint8_t)0x01)

Receive buffer not empty

Definition at line 1680 of file stm8l15x.h.

#define SPI_SR_TXE   ((uint8_t)0x02)

Transmit buffer empty

Definition at line 1679 of file stm8l15x.h.

#define SPI_SR_WKUP   ((uint8_t)0x08)

Wake-Up flag

Definition at line 1678 of file stm8l15x.h.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com