Function gx_hal_uart_read¶
Defined in file__output_copyinclude_src_include_uart_gx_hal_uart.h
Function Documentation¶
-
int gx_hal_uart_read(GX_HAL_UART *dev, uint8_t *buffer, uint32_t length)¶
同步从串口中读取指定长度的数据
- 参数
dev – uart 句柄
buf – 读取到的数据保存buf
len – 数据长度
- 返回
int 实际读取到的数据长度