Function gx_uart_read_fifo

int gx_uart_read_fifo(int port, unsigned char *buf, int len)

直接读取 rx fifo 数据,可用于 gx_uart_start_async_recv 回调函数中,获取到有效数据量后,直接读取数据

参数
  • port -- 端口

  • buf -- 读取到的数据保存buf

  • len -- 数据长度

返回

int 实际读取到的数据长度