STM8S/A Standard Peripherals Drivers
|
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) |
#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) |
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) |
#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) |
Receiver Wake-Up mask
Definition at line 1935 of file stm8s.h.
Referenced by UART2_ReceiverWakeUpCmd().
#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) |
Alternate Function output mask
Definition at line 1938 of file stm8s.h.
Referenced by UART2_LINCmd().
#define UART2_CR3_STOP ((uint8_t)0x30) |
#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) |
#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) |
#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) |
#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) |
#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) |
#define UART2_CR6_LSF ((uint8_t)0x01) |
#define UART2_CR6_LSLV ((uint8_t)0x20) |
#define UART2_SR_IDLE ((uint8_t)0x10) |
#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) |