STM8S/A Standard Peripherals Drivers
|
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) |
#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) |
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) |
#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) |
Receiver Wake-Up mask
Definition at line 1835 of file stm8s.h.
Referenced by UART1_ReceiverWakeUpCmd().
#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) |
Alternate Function output mask
Definition at line 1838 of file stm8s.h.
Referenced by UART1_LINCmd().
#define UART1_CR3_STOP ((uint8_t)0x30) |
#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) |
#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) |
#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) |
#define UART1_SR_IDLE ((uint8_t)0x10) |
#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) |