STM8L15x Standard Peripherals Drivers
|
USART_Registers_Bits_Definition
Define Documentation
#define USART_BRR1_DIVM ((uint8_t)0xFF) |
LSB mantissa of USARTDIV [7:0] mask
Definition at line 2234 of file stm8l15x.h.
Referenced by USART_Init().
#define USART_BRR2_DIVF ((uint8_t)0x0F) |
Fraction bits of USARTDIV [3:0] mask
Definition at line 2237 of file stm8l15x.h.
Referenced by USART_Init().
#define USART_BRR2_DIVM ((uint8_t)0xF0) |
MSB mantissa of USARTDIV [11:8] mask
Definition at line 2236 of file stm8l15x.h.
Referenced by USART_Init().
#define USART_CR1_M ((uint8_t)0x10) |
#define USART_CR1_PCEN ((uint8_t)0x04) |
#define USART_CR1_PIEN ((uint8_t)0x01) |
USART Parity Interrupt Enable mask
Definition at line 2246 of file stm8l15x.h.
#define USART_CR1_PS ((uint8_t)0x02) |
#define USART_CR1_R8 ((uint8_t)0x80) |
#define USART_CR1_T8 ((uint8_t)0x40) |
#define USART_CR1_USARTD ((uint8_t)0x20) |
USART Disable (for low power consumption)
Definition at line 2241 of file stm8l15x.h.
Referenced by USART_Cmd().
#define USART_CR1_WAKE ((uint8_t)0x08) |
#define USART_CR2_ILIEN ((uint8_t)0x10) |
IDLE Line Interrupt Enable mask
Definition at line 2251 of file stm8l15x.h.
#define USART_CR2_REN ((uint8_t)0x04) |
#define USART_CR2_RIEN ((uint8_t)0x20) |
Receiver Interrupt Enable mask
Definition at line 2250 of file stm8l15x.h.
#define USART_CR2_RWU ((uint8_t)0x02) |
Receiver Wake-Up mask
Definition at line 2254 of file stm8l15x.h.
Referenced by USART_ReceiverWakeUpCmd().
#define USART_CR2_SBK ((uint8_t)0x01) |
#define USART_CR2_TCIEN ((uint8_t)0x40) |
TransmissionComplete Interrupt Enable mask
Definition at line 2249 of file stm8l15x.h.
#define USART_CR2_TEN ((uint8_t)0x08) |
#define USART_CR2_TIEN ((uint8_t)0x80) |
Transmitter Interrupt Enable mask
Definition at line 2248 of file stm8l15x.h.
#define USART_CR3_CLKEN ((uint8_t)0x08) |
#define USART_CR3_CPHA ((uint8_t)0x02) |
#define USART_CR3_CPOL ((uint8_t)0x04) |
#define USART_CR3_LBCL ((uint8_t)0x01) |
Last Bit Clock pulse mask
Definition at line 2261 of file stm8l15x.h.
Referenced by USART_ClockInit().
#define USART_CR3_STOP ((uint8_t)0x30) |
#define USART_CR4_ADD ((uint8_t)0x0F) |
Address of the USART node mask
Definition at line 2263 of file stm8l15x.h.
Referenced by USART_SetAddress().
#define USART_CR5_DMAR ((uint8_t)0x40) |
DMA Enable receiver mask
Definition at line 2266 of file stm8l15x.h.
#define USART_CR5_DMAT ((uint8_t)0x80) |
DMA Enable transmitter mask
Definition at line 2265 of file stm8l15x.h.
#define USART_CR5_EIE ((uint8_t)0x01) |
#define USART_CR5_HDSEL ((uint8_t)0x08) |
Half-Duplex Selection mask
Definition at line 2269 of file stm8l15x.h.
Referenced by USART_HalfDuplexCmd().
#define USART_CR5_IREN ((uint8_t)0x02) |
#define USART_CR5_IRLP ((uint8_t)0x04) |
Irda Low Power Selection mask
Definition at line 2270 of file stm8l15x.h.
Referenced by USART_IrDAConfig().
#define USART_CR5_NACK ((uint8_t)0x10) |
Smart Card Nack Enable mask
Definition at line 2268 of file stm8l15x.h.
Referenced by USART_SmartCardNACKCmd().
#define USART_CR5_SCEN ((uint8_t)0x20) |
Smart Card Enable mask
Definition at line 2267 of file stm8l15x.h.
Referenced by USART_SmartCardCmd().
#define USART_SR_FE ((uint8_t)0x02) |
Framing Error mask
Definition at line 2231 of file stm8l15x.h.
#define USART_SR_IDLE ((uint8_t)0x10) |
IDLE line detected mask
Definition at line 2228 of file stm8l15x.h.
#define USART_SR_NF ((uint8_t)0x04) |
Noise Flag mask
Definition at line 2230 of file stm8l15x.h.
#define USART_SR_OR ((uint8_t)0x08) |
OverRun error mask
Definition at line 2229 of file stm8l15x.h.
#define USART_SR_PE ((uint8_t)0x01) |
Parity Error mask
Definition at line 2232 of file stm8l15x.h.
#define USART_SR_RXNE ((uint8_t)0x20) |
Read Data Register Not Empty mask
Definition at line 2227 of file stm8l15x.h.
#define USART_SR_TC ((uint8_t)0x40) |
Transmission Complete mask
Definition at line 2226 of file stm8l15x.h.
#define USART_SR_TXE ((uint8_t)0x80) |
Transmit Data Register Empty mask
Definition at line 2225 of file stm8l15x.h.