STM8S/A Standard Peripherals Drivers: UART2_Registers_Bits_Definition

STM8S/A

STM8S/A Standard Peripherals Drivers
UART2_Registers_Bits_Definition

Defines

#define UART2_BRR1_DIVM   ((uint8_t)0xFF)
#define UART2_BRR2_DIVF   ((uint8_t)0x0F)
#define UART2_BRR2_DIVM   ((uint8_t)0xF0)
#define UART2_CR1_M   ((uint8_t)0x10)
#define UART2_CR1_PCEN   ((uint8_t)0x04)
#define UART2_CR1_PIEN   ((uint8_t)0x01)
#define UART2_CR1_PS   ((uint8_t)0x02)
#define UART2_CR1_R8   ((uint8_t)0x80)
#define UART2_CR1_T8   ((uint8_t)0x40)
#define UART2_CR1_UARTD   ((uint8_t)0x20)
#define UART2_CR1_WAKE   ((uint8_t)0x08)
#define UART2_CR2_ILIEN   ((uint8_t)0x10)
#define UART2_CR2_REN   ((uint8_t)0x04)
#define UART2_CR2_RIEN   ((uint8_t)0x20)
#define UART2_CR2_RWU   ((uint8_t)0x02)
#define UART2_CR2_SBK   ((uint8_t)0x01)
#define UART2_CR2_TCIEN   ((uint8_t)0x40)
#define UART2_CR2_TEN   ((uint8_t)0x08)
#define UART2_CR2_TIEN   ((uint8_t)0x80)
#define UART2_CR3_CKEN   ((uint8_t)0x08)
#define UART2_CR3_CPHA   ((uint8_t)0x02)
#define UART2_CR3_CPOL   ((uint8_t)0x04)
#define UART2_CR3_LBCL   ((uint8_t)0x01)
#define UART2_CR3_LINEN   ((uint8_t)0x40)
#define UART2_CR3_STOP   ((uint8_t)0x30)
#define UART2_CR4_ADD   ((uint8_t)0x0F)
#define UART2_CR4_LBDF   ((uint8_t)0x10)
#define UART2_CR4_LBDIEN   ((uint8_t)0x40)
#define UART2_CR4_LBDL   ((uint8_t)0x20)
#define UART2_CR5_IREN   ((uint8_t)0x02)
#define UART2_CR5_IRLP   ((uint8_t)0x04)
#define UART2_CR5_NACK   ((uint8_t)0x10)
#define UART2_CR5_SCEN   ((uint8_t)0x20)
#define UART2_CR6_LASE   ((uint8_t)0x10)
#define UART2_CR6_LDUM   ((uint8_t)0x80)
#define UART2_CR6_LHDF   ((uint8_t)0x02)
#define UART2_CR6_LHDIEN   ((uint8_t)0x04)
#define UART2_CR6_LSF   ((uint8_t)0x01)
#define UART2_CR6_LSLV   ((uint8_t)0x20)
#define UART2_SR_FE   ((uint8_t)0x02)
#define UART2_SR_IDLE   ((uint8_t)0x10)
#define UART2_SR_NF   ((uint8_t)0x04)
#define UART2_SR_OR   ((uint8_t)0x08)
#define UART2_SR_PE   ((uint8_t)0x01)
#define UART2_SR_RXNE   ((uint8_t)0x20)
#define UART2_SR_TC   ((uint8_t)0x40)
#define UART2_SR_TXE   ((uint8_t)0x80)

Define Documentation

#define UART2_BRR1_DIVM   ((uint8_t)0xFF)

LSB mantissa of UART2DIV [7:0] mask

Definition at line 1915 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_BRR2_DIVF   ((uint8_t)0x0F)

Fraction bits of UART2DIV [3:0] mask

Definition at line 1918 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_BRR2_DIVM   ((uint8_t)0xF0)

MSB mantissa of UART2DIV [11:8] mask

Definition at line 1917 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR1_M   ((uint8_t)0x10)

Word length mask

Definition at line 1923 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR1_PCEN   ((uint8_t)0x04)

Parity Control Enable mask

Definition at line 1925 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR1_PIEN   ((uint8_t)0x01)

UART2 Parity Interrupt Enable mask

Definition at line 1927 of file stm8s.h.

#define UART2_CR1_PS   ((uint8_t)0x02)

UART2 Parity Selection

Definition at line 1926 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR1_R8   ((uint8_t)0x80)

Receive Data bit 8

Definition at line 1920 of file stm8s.h.

Referenced by UART2_ReceiveData9().

#define UART2_CR1_T8   ((uint8_t)0x40)

Transmit data bit 8

Definition at line 1921 of file stm8s.h.

Referenced by UART2_SendData9().

#define UART2_CR1_UARTD   ((uint8_t)0x20)

UART2 Disable (for low power consumption)

Definition at line 1922 of file stm8s.h.

Referenced by UART2_Cmd().

#define UART2_CR1_WAKE   ((uint8_t)0x08)

Wake-up method mask

Definition at line 1924 of file stm8s.h.

Referenced by UART2_WakeUpConfig().

#define UART2_CR2_ILIEN   ((uint8_t)0x10)

IDLE Line Interrupt Enable mask

Definition at line 1932 of file stm8s.h.

#define UART2_CR2_REN   ((uint8_t)0x04)

Receiver Enable mask

Definition at line 1934 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR2_RIEN   ((uint8_t)0x20)

Receiver Interrupt Enable mask

Definition at line 1931 of file stm8s.h.

#define UART2_CR2_RWU   ((uint8_t)0x02)

Receiver Wake-Up mask

Definition at line 1935 of file stm8s.h.

Referenced by UART2_ReceiverWakeUpCmd().

#define UART2_CR2_SBK   ((uint8_t)0x01)

Send Break mask

Definition at line 1936 of file stm8s.h.

Referenced by UART2_SendBreak().

#define UART2_CR2_TCIEN   ((uint8_t)0x40)

Transmission Complete Interrupt Enable mask

Definition at line 1930 of file stm8s.h.

#define UART2_CR2_TEN   ((uint8_t)0x08)

Transmitter Enable mask

Definition at line 1933 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR2_TIEN   ((uint8_t)0x80)

Transmitter Interrupt Enable mask

Definition at line 1929 of file stm8s.h.

#define UART2_CR3_CKEN   ((uint8_t)0x08)

Clock Enable mask

Definition at line 1940 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR3_CPHA   ((uint8_t)0x02)

Clock Phase mask

Definition at line 1942 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR3_CPOL   ((uint8_t)0x04)

Clock Polarity mask

Definition at line 1941 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR3_LBCL   ((uint8_t)0x01)

Last Bit Clock pulse mask

Definition at line 1943 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR3_LINEN   ((uint8_t)0x40)

Alternate Function output mask

Definition at line 1938 of file stm8s.h.

Referenced by UART2_LINCmd().

#define UART2_CR3_STOP   ((uint8_t)0x30)

STOP bits [1:0] mask

Definition at line 1939 of file stm8s.h.

Referenced by UART2_Init().

#define UART2_CR4_ADD   ((uint8_t)0x0F)

Address of the UART2 node mask

Definition at line 1948 of file stm8s.h.

Referenced by UART2_SetAddress().

#define UART2_CR4_LBDF   ((uint8_t)0x10)

LIN Break Detection Flag mask

Definition at line 1947 of file stm8s.h.

Referenced by UART2_ClearFlag(), and UART2_ClearITPendingBit().

#define UART2_CR4_LBDIEN   ((uint8_t)0x40)

LIN Break Detection Interrupt Enable mask

Definition at line 1945 of file stm8s.h.

#define UART2_CR4_LBDL   ((uint8_t)0x20)

LIN Break Detection Length mask

Definition at line 1946 of file stm8s.h.

Referenced by UART2_LINBreakDetectionConfig().

#define UART2_CR5_IREN   ((uint8_t)0x02)

Irda Enable mask

Definition at line 1953 of file stm8s.h.

Referenced by UART2_IrDACmd().

#define UART2_CR5_IRLP   ((uint8_t)0x04)

Irda Low Power Selection mask

Definition at line 1952 of file stm8s.h.

Referenced by UART2_IrDAConfig().

#define UART2_CR5_NACK   ((uint8_t)0x10)

Smart Card Nack Enable mask

Definition at line 1951 of file stm8s.h.

Referenced by UART2_SmartCardNACKCmd().

#define UART2_CR5_SCEN   ((uint8_t)0x20)

Smart Card Enable mask

Definition at line 1950 of file stm8s.h.

Referenced by UART2_SmartCardCmd().

#define UART2_CR6_LASE   ((uint8_t)0x10)

LIN Auto synchronization Enable

Definition at line 1957 of file stm8s.h.

Referenced by UART2_LINConfig().

#define UART2_CR6_LDUM   ((uint8_t)0x80)

LIN Divider Update Method

Definition at line 1955 of file stm8s.h.

Referenced by UART2_LINConfig().

#define UART2_CR6_LHDF   ((uint8_t)0x02)

LIN Header Detection Flag

Definition at line 1959 of file stm8s.h.

Referenced by UART2_ClearFlag(), and UART2_ClearITPendingBit().

#define UART2_CR6_LHDIEN   ((uint8_t)0x04)

LIN Header Detection Interrupt Enable

Definition at line 1958 of file stm8s.h.

#define UART2_CR6_LSF   ((uint8_t)0x01)

LIN Synch Field

Definition at line 1960 of file stm8s.h.

Referenced by UART2_ClearFlag().

#define UART2_CR6_LSLV   ((uint8_t)0x20)

LIN Slave Enable

Definition at line 1956 of file stm8s.h.

Referenced by UART2_LINConfig().

#define UART2_SR_FE   ((uint8_t)0x02)

Framing Error mask

Definition at line 1912 of file stm8s.h.

#define UART2_SR_IDLE   ((uint8_t)0x10)

IDLE line detected mask

Definition at line 1909 of file stm8s.h.

#define UART2_SR_NF   ((uint8_t)0x04)

Noise Flag mask

Definition at line 1911 of file stm8s.h.

#define UART2_SR_OR   ((uint8_t)0x08)

OverRun error mask

Definition at line 1910 of file stm8s.h.

#define UART2_SR_PE   ((uint8_t)0x01)

Parity Error mask

Definition at line 1913 of file stm8s.h.

#define UART2_SR_RXNE   ((uint8_t)0x20)

Read Data Register Not Empty mask

Definition at line 1908 of file stm8s.h.

Referenced by UART2_ClearFlag(), and UART2_ClearITPendingBit().

#define UART2_SR_TC   ((uint8_t)0x40)

Transmission Complete mask

Definition at line 1907 of file stm8s.h.

#define UART2_SR_TXE   ((uint8_t)0x80)

Transmit Data Register Empty mask

Definition at line 1906 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

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