STM8S/A Standard Peripherals Drivers: UART1_Registers_Bits_Definition

STM8S/A

STM8S/A Standard Peripherals Drivers
UART1_Registers_Bits_Definition

Defines

#define UART1_BRR1_DIVM   ((uint8_t)0xFF)
#define UART1_BRR2_DIVF   ((uint8_t)0x0F)
#define UART1_BRR2_DIVM   ((uint8_t)0xF0)
#define UART1_CR1_M   ((uint8_t)0x10)
#define UART1_CR1_PCEN   ((uint8_t)0x04)
#define UART1_CR1_PIEN   ((uint8_t)0x01)
#define UART1_CR1_PS   ((uint8_t)0x02)
#define UART1_CR1_R8   ((uint8_t)0x80)
#define UART1_CR1_T8   ((uint8_t)0x40)
#define UART1_CR1_UARTD   ((uint8_t)0x20)
#define UART1_CR1_WAKE   ((uint8_t)0x08)
#define UART1_CR2_ILIEN   ((uint8_t)0x10)
#define UART1_CR2_REN   ((uint8_t)0x04)
#define UART1_CR2_RIEN   ((uint8_t)0x20)
#define UART1_CR2_RWU   ((uint8_t)0x02)
#define UART1_CR2_SBK   ((uint8_t)0x01)
#define UART1_CR2_TCIEN   ((uint8_t)0x40)
#define UART1_CR2_TEN   ((uint8_t)0x08)
#define UART1_CR2_TIEN   ((uint8_t)0x80)
#define UART1_CR3_CKEN   ((uint8_t)0x08)
#define UART1_CR3_CPHA   ((uint8_t)0x02)
#define UART1_CR3_CPOL   ((uint8_t)0x04)
#define UART1_CR3_LBCL   ((uint8_t)0x01)
#define UART1_CR3_LINEN   ((uint8_t)0x40)
#define UART1_CR3_STOP   ((uint8_t)0x30)
#define UART1_CR4_ADD   ((uint8_t)0x0F)
#define UART1_CR4_LBDF   ((uint8_t)0x10)
#define UART1_CR4_LBDIEN   ((uint8_t)0x40)
#define UART1_CR4_LBDL   ((uint8_t)0x20)
#define UART1_CR5_HDSEL   ((uint8_t)0x08)
#define UART1_CR5_IREN   ((uint8_t)0x02)
#define UART1_CR5_IRLP   ((uint8_t)0x04)
#define UART1_CR5_NACK   ((uint8_t)0x10)
#define UART1_CR5_SCEN   ((uint8_t)0x20)
#define UART1_SR_FE   ((uint8_t)0x02)
#define UART1_SR_IDLE   ((uint8_t)0x10)
#define UART1_SR_NF   ((uint8_t)0x04)
#define UART1_SR_OR   ((uint8_t)0x08)
#define UART1_SR_PE   ((uint8_t)0x01)
#define UART1_SR_RXNE   ((uint8_t)0x20)
#define UART1_SR_TC   ((uint8_t)0x40)
#define UART1_SR_TXE   ((uint8_t)0x80)

Define Documentation

#define UART1_BRR1_DIVM   ((uint8_t)0xFF)

LSB mantissa of UART1DIV [7:0] mask

Definition at line 1815 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_BRR2_DIVF   ((uint8_t)0x0F)

Fraction bits of UART1DIV [3:0] mask

Definition at line 1818 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_BRR2_DIVM   ((uint8_t)0xF0)

MSB mantissa of UART1DIV [11:8] mask

Definition at line 1817 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR1_M   ((uint8_t)0x10)

Word length mask

Definition at line 1823 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR1_PCEN   ((uint8_t)0x04)

Parity Control Enable mask

Definition at line 1825 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR1_PIEN   ((uint8_t)0x01)

UART1 Parity Interrupt Enable mask

Definition at line 1827 of file stm8s.h.

#define UART1_CR1_PS   ((uint8_t)0x02)

UART1 Parity Selection

Definition at line 1826 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR1_R8   ((uint8_t)0x80)

Receive Data bit 8

Definition at line 1820 of file stm8s.h.

Referenced by UART1_ReceiveData9().

#define UART1_CR1_T8   ((uint8_t)0x40)

Transmit data bit 8

Definition at line 1821 of file stm8s.h.

Referenced by UART1_SendData9().

#define UART1_CR1_UARTD   ((uint8_t)0x20)

UART1 Disable (for low power consumption)

Definition at line 1822 of file stm8s.h.

Referenced by UART1_Cmd().

#define UART1_CR1_WAKE   ((uint8_t)0x08)

Wake-up method mask

Definition at line 1824 of file stm8s.h.

Referenced by UART1_WakeUpConfig().

#define UART1_CR2_ILIEN   ((uint8_t)0x10)

IDLE Line Interrupt Enable mask

Definition at line 1832 of file stm8s.h.

#define UART1_CR2_REN   ((uint8_t)0x04)

Receiver Enable mask

Definition at line 1834 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR2_RIEN   ((uint8_t)0x20)

Receiver Interrupt Enable mask

Definition at line 1831 of file stm8s.h.

#define UART1_CR2_RWU   ((uint8_t)0x02)

Receiver Wake-Up mask

Definition at line 1835 of file stm8s.h.

Referenced by UART1_ReceiverWakeUpCmd().

#define UART1_CR2_SBK   ((uint8_t)0x01)

Send Break mask

Definition at line 1836 of file stm8s.h.

Referenced by UART1_SendBreak().

#define UART1_CR2_TCIEN   ((uint8_t)0x40)

Transmission Complete Interrupt Enable mask

Definition at line 1830 of file stm8s.h.

#define UART1_CR2_TEN   ((uint8_t)0x08)

Transmitter Enable mask

Definition at line 1833 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR2_TIEN   ((uint8_t)0x80)

Transmitter Interrupt Enable mask

Definition at line 1829 of file stm8s.h.

#define UART1_CR3_CKEN   ((uint8_t)0x08)

Clock Enable mask

Definition at line 1840 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR3_CPHA   ((uint8_t)0x02)

Clock Phase mask

Definition at line 1842 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR3_CPOL   ((uint8_t)0x04)

Clock Polarity mask

Definition at line 1841 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR3_LBCL   ((uint8_t)0x01)

Last Bit Clock pulse mask

Definition at line 1843 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR3_LINEN   ((uint8_t)0x40)

Alternate Function output mask

Definition at line 1838 of file stm8s.h.

Referenced by UART1_LINCmd().

#define UART1_CR3_STOP   ((uint8_t)0x30)

STOP bits [1:0] mask

Definition at line 1839 of file stm8s.h.

Referenced by UART1_Init().

#define UART1_CR4_ADD   ((uint8_t)0x0F)

Address of the UART1 node mask

Definition at line 1848 of file stm8s.h.

Referenced by UART1_SetAddress().

#define UART1_CR4_LBDF   ((uint8_t)0x10)

LIN Break Detection Flag mask

Definition at line 1847 of file stm8s.h.

Referenced by UART1_ClearFlag(), and UART1_ClearITPendingBit().

#define UART1_CR4_LBDIEN   ((uint8_t)0x40)

LIN Break Detection Interrupt Enable mask

Definition at line 1845 of file stm8s.h.

#define UART1_CR4_LBDL   ((uint8_t)0x20)

LIN Break Detection Length mask

Definition at line 1846 of file stm8s.h.

Referenced by UART1_LINBreakDetectionConfig().

#define UART1_CR5_HDSEL   ((uint8_t)0x08)

Half-Duplex Selection mask

Definition at line 1852 of file stm8s.h.

Referenced by UART1_HalfDuplexCmd().

#define UART1_CR5_IREN   ((uint8_t)0x02)

Irda Enable mask

Definition at line 1854 of file stm8s.h.

Referenced by UART1_IrDACmd().

#define UART1_CR5_IRLP   ((uint8_t)0x04)

Irda Low Power Selection mask

Definition at line 1853 of file stm8s.h.

Referenced by UART1_IrDAConfig().

#define UART1_CR5_NACK   ((uint8_t)0x10)

Smart Card Nack Enable mask

Definition at line 1851 of file stm8s.h.

Referenced by UART1_SmartCardNACKCmd().

#define UART1_CR5_SCEN   ((uint8_t)0x20)

Smart Card Enable mask

Definition at line 1850 of file stm8s.h.

Referenced by UART1_SmartCardCmd().

#define UART1_SR_FE   ((uint8_t)0x02)

Framing Error mask

Definition at line 1812 of file stm8s.h.

#define UART1_SR_IDLE   ((uint8_t)0x10)

IDLE line detected mask

Definition at line 1809 of file stm8s.h.

#define UART1_SR_NF   ((uint8_t)0x04)

Noise Flag mask

Definition at line 1811 of file stm8s.h.

#define UART1_SR_OR   ((uint8_t)0x08)

OverRun error mask

Definition at line 1810 of file stm8s.h.

#define UART1_SR_PE   ((uint8_t)0x01)

Parity Error mask

Definition at line 1813 of file stm8s.h.

#define UART1_SR_RXNE   ((uint8_t)0x20)

Read Data Register Not Empty mask

Definition at line 1808 of file stm8s.h.

Referenced by UART1_ClearFlag(), and UART1_ClearITPendingBit().

#define UART1_SR_TC   ((uint8_t)0x40)

Transmission Complete mask

Definition at line 1807 of file stm8s.h.

#define UART1_SR_TXE   ((uint8_t)0x80)

Transmit Data Register Empty mask

Definition at line 1806 of file stm8s.h.

STM8 Standard Peripherals Library: Footer

 

 

 

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