RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtthread.h>
结构体 | |
struct | serial_configure |
struct | rt_serial_rx_fifo |
struct | rt_serial_tx_fifo |
struct | rt_serial_rx_dma |
struct | rt_serial_tx_dma |
struct | rt_serial_device |
struct | rt_uart_ops |
宏定义 | |
#define | BAUD_RATE_2400 2400 |
#define | BAUD_RATE_4800 4800 |
#define | BAUD_RATE_9600 9600 |
#define | BAUD_RATE_19200 19200 |
#define | BAUD_RATE_38400 38400 |
#define | BAUD_RATE_57600 57600 |
#define | BAUD_RATE_115200 115200 |
#define | BAUD_RATE_230400 230400 |
#define | BAUD_RATE_460800 460800 |
#define | BAUD_RATE_500000 500000 |
#define | BAUD_RATE_576000 576000 |
#define | BAUD_RATE_921600 921600 |
#define | BAUD_RATE_1000000 1000000 |
#define | BAUD_RATE_1152000 1152000 |
#define | BAUD_RATE_1500000 1500000 |
#define | BAUD_RATE_2000000 2000000 |
#define | BAUD_RATE_2500000 2500000 |
#define | BAUD_RATE_3000000 3000000 |
#define | BAUD_RATE_3500000 3500000 |
#define | BAUD_RATE_4000000 4000000 |
#define | DATA_BITS_5 5 |
#define | DATA_BITS_6 6 |
#define | DATA_BITS_7 7 |
#define | DATA_BITS_8 8 |
#define | DATA_BITS_9 9 |
#define | STOP_BITS_1 0 |
#define | STOP_BITS_2 1 |
#define | STOP_BITS_3 2 |
#define | STOP_BITS_4 3 |
#define | PARITY_NONE 0 |
#define | PARITY_ODD 1 |
#define | PARITY_EVEN 2 |
#define | BIT_ORDER_LSB 0 |
#define | BIT_ORDER_MSB 1 |
#define | NRZ_NORMAL 0 /* Non Return to Zero : normal mode */ |
#define | NRZ_INVERTED 1 /* Non Return to Zero : inverted mode */ |
#define | RT_SERIAL_RB_BUFSZ 64 |
#define | RT_SERIAL_EVENT_RX_IND 0x01 /* Rx indication */ |
#define | RT_SERIAL_EVENT_TX_DONE 0x02 /* Tx complete */ |
#define | RT_SERIAL_EVENT_RX_DMADONE 0x03 /* Rx DMA transfer done */ |
#define | RT_SERIAL_EVENT_TX_DMADONE 0x04 /* Tx DMA transfer done */ |
#define | RT_SERIAL_EVENT_RX_TIMEOUT 0x05 /* Rx timeout */ |
#define | RT_SERIAL_DMA_RX 0x01 |
#define | RT_SERIAL_DMA_TX 0x02 |
#define | RT_SERIAL_RX_INT 0x01 |
#define | RT_SERIAL_TX_INT 0x02 |
#define | RT_SERIAL_ERR_OVERRUN 0x01 |
#define | RT_SERIAL_ERR_FRAMING 0x02 |
#define | RT_SERIAL_ERR_PARITY 0x03 |
#define | RT_SERIAL_TX_DATAQUEUE_SIZE 2048 |
#define | RT_SERIAL_TX_DATAQUEUE_LWM 30 |
#define | RT_SERIAL_FLOWCONTROL_CTSRTS 1 |
#define | RT_SERIAL_FLOWCONTROL_NONE 0 |
#define | RT_SERIAL_CONFIG_DEFAULT |
类型定义 | |
typedef void(* | rt_hw_serial_rxind_hookproto_t) (rt_device_t dev, rt_size_t size) |
typedef struct rt_serial_device | rt_serial_t |
函数 | |
RT_OBJECT_HOOKLIST_DECLARE (rt_hw_serial_rxind_hookproto_t, rt_hw_serial_rxind) | |
void | rt_hw_serial_isr (struct rt_serial_device *serial, int event) |
rt_err_t | rt_hw_serial_register (struct rt_serial_device *serial, const char *name, rt_uint32_t flag, void *data) |
rt_err_t | rt_hw_serial_register_tty (struct rt_serial_device *serial) |