light_device_t 结构参考

light_device_t 结构参考

#include < lights.h >

数据字段

结构hw_device_t常见的
整数(* set_light )(struct light_device_t *dev, struct light_state_t const *state)

详细说明

在文件lights.h的第176行定义。

现场文件

结构hw_device_t通用

文件lights.h177行的定义。

int(* set_light)(struct light_device_t *dev, struct light_state_t const *state)

将提供的灯光设置为提供的值。

返回:成功返回 0,失败返回错误码。

文件lights.h184行的定义。


此结构的文档是从以下文件生成的: