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

#include <sensor.h>

成员变量

rt_ssize_t(* fetch_data )(struct rt_sensor_device *sensor, void *buf, rt_size_t len)
 
rt_err_t(* control )(struct rt_sensor_device *sensor, int cmd, void *arg)
 

详细描述

在文件 sensor.h248 行定义.

结构体成员变量说明

◆ fetch_data

rt_ssize_t(* rt_sensor_ops::fetch_data)(rt_sensor_t sensor, rt_sensor_data_t buf, rt_size_t len)

在文件 sensor.h250 行定义.

◆ control

rt_err_t(* rt_sensor_ops::control)(rt_sensor_t sensor, int cmd, void *arg)

在文件 sensor.h251 行定义.