![]() |
RT-Thread API参考手册
4.0.3
嵌入式实时操作系统
|
串口设备的操作方法 更多...
成员变量 | |
| rt_err_t(* | configure )(struct rt_serial_device *serial, struct serial_configure *cfg) |
| 串口配置操作函数 | |
| rt_err_t(* | control )(struct rt_serial_device *serial, int cmd, void *arg) |
| 串口控制函数 | |
| int(* | putc )(struct rt_serial_device *serial, char c) |
| 发送一个字符数据 | |
| int(* | getc )(struct rt_serial_device *serial) |
| 接收一个字符数据 | |
| rt_size_t(* | dma_transmit )(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction) |
| DMA模式数据传输函数 | |
串口设备的操作方法