RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
led.h 文件参考
#include <rthw.h>
#include <rtdef.h>
+ led.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

struct  rt_led_device
 
struct  rt_led_ops
 

枚举

enum  rt_led_state {
  RT_LED_S_OFF , RT_LED_S_ON , RT_LED_S_TOGGLE , RT_LED_S_BLINK ,
  RT_LED_STATE_NR
}
 

函数

rt_err_t rt_hw_led_register (struct rt_led_device *led)
 
rt_err_t rt_hw_led_unregister (struct rt_led_device *led)
 
rt_err_t rt_led_set_state (struct rt_led_device *led, enum rt_led_state state)
 
rt_err_t rt_led_get_state (struct rt_led_device *led, enum rt_led_state *out_state)
 
rt_err_t rt_led_set_period (struct rt_led_device *led, rt_uint32_t period_ms)
 
rt_err_t rt_led_set_brightness (struct rt_led_device *led, rt_uint32_t brightness)
 

枚举类型说明

◆ rt_led_state

枚举值
RT_LED_S_OFF 
RT_LED_S_ON 
RT_LED_S_TOGGLE 
RT_LED_S_BLINK 
RT_LED_STATE_NR 

在文件 led.h19 行定义.

20{
25
27};
@ RT_LED_S_ON
定义 led.h:22
@ RT_LED_STATE_NR
定义 led.h:26
@ RT_LED_S_BLINK
定义 led.h:24
@ RT_LED_S_TOGGLE
定义 led.h:23
@ RT_LED_S_OFF
定义 led.h:21

函数说明

◆ rt_hw_led_register()

rt_err_t rt_hw_led_register ( struct rt_led_device * led)

◆ rt_hw_led_unregister()

rt_err_t rt_hw_led_unregister ( struct rt_led_device * led)

◆ rt_led_set_state()

rt_err_t rt_led_set_state ( struct rt_led_device * led,
enum rt_led_state state )

◆ rt_led_get_state()

rt_err_t rt_led_get_state ( struct rt_led_device * led,
enum rt_led_state * out_state )

◆ rt_led_set_period()

rt_err_t rt_led_set_period ( struct rt_led_device * led,
rt_uint32_t period_ms )

◆ rt_led_set_brightness()

rt_err_t rt_led_set_brightness ( struct rt_led_device * led,
rt_uint32_t brightness )