Wirepas SDK
led.h
Go to the documentation of this file.
1 /* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
11 #include <stdint.h>
12 #include <stdbool.h>
13 
17 typedef enum
18 {
23 } led_res_e;
24 
40 void Led_init(void);
41 
66 led_res_e Led_set(uint8_t led_id, bool state);
67 
75 bool Led_get (uint8_t led_id);
76 
83 led_res_e Led_toggle(uint8_t led_id);
84 
89 uint8_t Led_getNumber(void);
Led_set
led_res_e Led_set(uint8_t led_id, bool state)
Turn the given LED on or off.
led_res_e
led_res_e
List of return code.
Definition: led.h:17
LED_RES_OK
@ LED_RES_OK
Definition: led.h:20
Led_toggle
led_res_e Led_toggle(uint8_t led_id)
Toggle the given LED.
LED_RES_INVALID_ID
@ LED_RES_INVALID_ID
Definition: led.h:22
Led_init
void Led_init(void)
Initialize Led module.
Led_getNumber
uint8_t Led_getNumber(void)
Get number of leds available.
Led_get
bool Led_get(uint8_t led_id)
Get the given LED current state.