Appiko
led_seq.h
1 
8 #ifndef _LED_SEQ_H_
9 #define _LED_SEQ_H_
10 
11 #include <stdint.h>
12 
14 typedef enum {
15  LED_SEQ_RAMP_OFFSET = 0,
16  LED_SEQ_RED_PULSE = 1,
17  LED_SEQ_ORANGE_WAVE = 2,
18  LED_SEQ_DUAL_FREQ = 3,
19  LED_SEQ_PIR_PULSE = 4,
20  LED_SEQ_GREEN_WAVE = 5,
21  LED_SEQ_NULL = 255,
22 } led_sequences;
23 
25 typedef enum {
26  LED_COLOR_RED,
27  LED_COLOR_GREEN,
29  LED_COLOR_MAX
30 }led_seq_color;
31 
37 const uint32_t * const led_seq_get_pin_ptr(void);
38 
44 uint32_t led_seq_get_pin_num(led_sequences seq);
45 
51 uint32_t led_seq_get_seg_len(led_sequences seq);
52 
59 uint16_t * led_seq_get_seq_color_ptr(led_sequences seq, led_seq_color color);
60 
66 uint16_t * led_seq_get_seq_duration_ptr(led_sequences seq);
67 
68 #endif /* _LED_SEQ_H_ */