ESP32学习笔记05-串口事件方式读取数据

串口中断方式处理数据

事件机构体
typedef struct {
   
    uart_event_type_t type; /*!< UART event type */
    size_t size;            /*!< UART data size for UART_DATA event*/
    bool timeout_flag;      /*!< UART data read timeout flag for UART_DATA event (no new data received during configured RX TOUT)*/
                            /*!< If the event is caused by FIFO-full interrupt, then there will be no event with the timeout flag before the next byte coming.*/

你可能感兴趣的:(ESP32,串口事件,消息队列,非阻塞)