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

#include <led.h>

成员变量

rt_err_t(* set_state )(struct rt_led_device *led, enum rt_led_state state)
 
rt_err_t(* get_state )(struct rt_led_device *led, enum rt_led_state *out_state)
 
rt_err_t(* set_period )(struct rt_led_device *led, rt_uint32_t period_ms)
 
rt_err_t(* set_brightness )(struct rt_led_device *led, rt_uint32_t brightness)
 

详细描述

在文件 led.h41 行定义.

结构体成员变量说明

◆ set_state

rt_err_t(* rt_led_ops::set_state) (struct rt_led_device *led, enum rt_led_state state)

在文件 led.h43 行定义.

◆ get_state

rt_err_t(* rt_led_ops::get_state) (struct rt_led_device *led, enum rt_led_state *out_state)

在文件 led.h44 行定义.

◆ set_period

rt_err_t(* rt_led_ops::set_period) (struct rt_led_device *led, rt_uint32_t period_ms)

在文件 led.h45 行定义.

◆ set_brightness

rt_err_t(* rt_led_ops::set_brightness) (struct rt_led_device *led, rt_uint32_t brightness)

在文件 led.h46 行定义.