RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
结构体 | |
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) |
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 ) |