Go to the source code of this file.
|
enum | vsf_usart_mode_t {
VSF_USART_8_BIT_LENGTH = 3ul
,
VSF_USART_7_BIT_LENGTH = 2ul
,
VSF_USART_6_BIT_LENGTH = 1ul
,
VSF_USART_5_BIT_LENGTH = 0ul
,
USART_BIT_LENGTH
,
VSF_USART_1_STOPBIT = 0x000ul
,
VSF_USART_1_5_STOPBIT
,
VSF_USART_2_STOPBIT
,
USART_STOPBIT
,
USART_NONE_PARITY = 0x00000ul
,
VSF_USART_ODD_PARITY = 0x10000ul
,
VSF_USART_EVEN_PARITY = 0x30000ul
,
USART_MARK_PARITY = 0x50000ul
,
USART_SPACE_PARITY = 0x70000ul
,
USART_PARITY
,
USART_1_BIT_FIFO = 0x00000000ul
,
USART_4_BIT_FIFO = 0x01000000ul
,
USART_8_BIT_FIFO = 0x02000000ul
,
USART_14_BIT_FIFO = 0x03000000ul
,
USART_FIFO_SIZE
,
USART_TX_INVERTED = 0x04000000ul
,
USART_RX_INVERTED = 0x08000000ul
,
USART_TX_RX_INVERTED
} |
|
enum | vsf_usart_irq_mask_t {
VSF_USART_IRQ_MASK_RX = VSF_BIT(0)
,
VSF_USART_IRQ_MASK_TX = VSF_BIT(1)
,
VSF_USART_IRQ_MASK_RX_CPL = VSF_BIT(2)
,
VSF_USART_IRQ_MASK_TX_CPL = VSF_BIT(3)
,
VSF_USART_IRQ_MASK_RX_ERROR = VSF_BIT(4)
,
VSF_USART_IRQ_MASK_TX_ERROR = VSF_BIT(5)
,
VSF_USART_IRQ_MASK_ERROR = VSF_USART_IRQ_MASK_RX_ERROR | VSF_USART_IRQ_MASK_TX_ERROR
,
VSF_USART_IRQ_MASK_RX_TIMEOUT = VSF_BIT(6)
,
VSF_USART_IRQ_ALL_BITS_MASK
} |
|
◆ VSF_CFG_USART_CLOCK_SOURCE
#define VSF_CFG_USART_CLOCK_SOURCE HXT |
◆ VSF_USART_CFG_REIMPLEMENT_TYPE_MODE
#define VSF_USART_CFG_REIMPLEMENT_TYPE_MODE ENABLED |
◆ VSF_USART_CFG_REIMPLEMENT_TYPE_IRQ_MASK
#define VSF_USART_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED |
◆ VSF_USART_CFG_REIMPLEMENT_TYPE_STATUS
#define VSF_USART_CFG_REIMPLEMENT_TYPE_STATUS ENABLED |
◆ VSF_USART_CFG_DEC_PREFIX
#define VSF_USART_CFG_DEC_PREFIX vsf_hw |
◆ VSF_USART_CFG_DEC_UPCASE_PREFIX
#define VSF_USART_CFG_DEC_UPCASE_PREFIX VSF_HW |
◆ vsf_usart_mode_t
◆ vsf_usart_irq_mask_t
◆ vsf_usart_status_t
◆ vsf_usart_mode_t
Enumerator |
---|
VSF_USART_8_BIT_LENGTH | |
VSF_USART_7_BIT_LENGTH | |
VSF_USART_6_BIT_LENGTH | |
VSF_USART_5_BIT_LENGTH | |
USART_BIT_LENGTH | |
VSF_USART_1_STOPBIT | |
VSF_USART_1_5_STOPBIT | UART_LINE setting for 1.5 stop bit when 5-bit word length
|
VSF_USART_2_STOPBIT | UART_LINE setting for two stop bit when 6, 7, 8-bit word length
|
USART_STOPBIT | |
USART_NONE_PARITY | |
VSF_USART_ODD_PARITY | |
VSF_USART_EVEN_PARITY | |
USART_MARK_PARITY | |
USART_SPACE_PARITY | |
USART_PARITY | |
USART_1_BIT_FIFO | |
USART_4_BIT_FIFO | |
USART_8_BIT_FIFO | |
USART_14_BIT_FIFO | |
USART_FIFO_SIZE | |
USART_TX_INVERTED | |
USART_RX_INVERTED | |
USART_TX_RX_INVERTED | |
◆ vsf_usart_irq_mask_t
Enumerator |
---|
VSF_USART_IRQ_MASK_RX | |
VSF_USART_IRQ_MASK_TX | |
VSF_USART_IRQ_MASK_RX_CPL | |
VSF_USART_IRQ_MASK_TX_CPL | |
VSF_USART_IRQ_MASK_RX_ERROR | |
VSF_USART_IRQ_MASK_TX_ERROR | |
VSF_USART_IRQ_MASK_ERROR | |
VSF_USART_IRQ_MASK_RX_TIMEOUT | |
VSF_USART_IRQ_ALL_BITS_MASK | |