RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
#include <rtdef.h>
成员变量 | |
struct rt_object | parent |
enum rt_device_class_type | type |
rt_uint16_t | flag |
rt_uint16_t | open_flag |
rt_uint8_t | ref_count |
rt_uint8_t | device_id |
rt_err_t(* | rx_indicate )(rt_device_t dev, rt_size_t size) |
rt_err_t(* | tx_complete )(rt_device_t dev, void *buffer) |
rt_err_t(* | init )(rt_device_t dev) |
rt_err_t(* | open )(rt_device_t dev, rt_uint16_t oflag) |
rt_err_t(* | close )(rt_device_t dev) |
rt_ssize_t(* | read )(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) |
rt_ssize_t(* | write )(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) |
rt_err_t(* | control )(rt_device_t dev, int cmd, void *args) |
rt_err_t(* | readlink )(rt_device_t dev, char *buf, int len) |
void * | user_data |
enum rt_device_class_type rt_device::type |
rt_uint16_t rt_device::flag |
rt_uint16_t rt_device::open_flag |
rt_uint8_t rt_device::ref_count |
rt_uint8_t rt_device::device_id |
rt_err_t(* rt_device::rx_indicate) (rt_device_t dev, rt_size_t size) |
rt_err_t(* rt_device::tx_complete) (rt_device_t dev, void *buffer) |
rt_err_t(* rt_device::init) (rt_device_t dev) |
rt_err_t(* rt_device::open) (rt_device_t dev, rt_uint16_t oflag) |
rt_err_t(* rt_device::close) (rt_device_t dev) |
rt_ssize_t(* rt_device::read) (rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) |
rt_ssize_t(* rt_device::write) (rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) |
rt_err_t(* rt_device::control) (rt_device_t dev, int cmd, void *args) |
rt_err_t(* rt_device::readlink) (rt_device_t dev, char *buf, int len) |