RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_uart_ops结构体 参考

#include <dev_serial.h>

成员变量

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_ssize_t(* dma_transmit )(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction)
 
rt_ssize_t(* transmit )(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, rt_uint32_t tx_flag)
 

详细描述

Configure the serial device

uart device operations

在文件 dev_serial.h277 行定义.

结构体成员变量说明

◆ configure

rt_err_t(* rt_uart_ops::configure)(struct rt_serial_device *serial, struct serial_configure *cfg)

在文件 dev_serial.h279 行定义.

◆ control

rt_err_t(* rt_uart_ops::control)(struct rt_serial_device *serial, int cmd, void *arg)

在文件 dev_serial.h280 行定义.

◆ putc

int(* rt_uart_ops::putc)(struct rt_serial_device *serial, char c)

在文件 dev_serial.h282 行定义.

◆ getc

int(* rt_uart_ops::getc)(struct rt_serial_device *serial)

在文件 dev_serial.h283 行定义.

◆ dma_transmit

rt_ssize_t(* rt_uart_ops::dma_transmit) (struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction)

在文件 dev_serial.h285 行定义.

◆ transmit

rt_ssize_t(* rt_uart_ops::transmit) (struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, rt_uint32_t tx_flag)

在文件 dev_serial_v2.h310 行定义.