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 
12 #ifndef LED_H_
13 #define LED_H_
14 
15 #include <stdint.h>
16 #include <stdbool.h>
17 
21 typedef enum
22 {
29 } led_res_e;
30 
46 void Led_init(void);
47 
72 led_res_e Led_set(uint8_t led_id, bool state);
73 
81 bool Led_get (uint8_t led_id);
82 
89 led_res_e Led_toggle(uint8_t led_id);
90 
95 uint8_t Led_getNumber(void);
96 
97 #endif /* LED_H_ */
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:21
LED_RES_OK
@ LED_RES_OK
Definition: led.h:24
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:26
Led_init
void Led_init(void)
Initialize Led module.
Led_getNumber
uint8_t Led_getNumber(void)
Get number of leds available.
LED_RES_UNINITIALIZED
@ LED_RES_UNINITIALIZED
Definition: led.h:28
Led_get
bool Led_get(uint8_t led_id)
Get the given LED current state.