diff options
Diffstat (limited to 'quantum/led_matrix.h')
-rw-r--r-- | quantum/led_matrix.h | 66 |
1 files changed, 36 insertions, 30 deletions
diff --git a/quantum/led_matrix.h b/quantum/led_matrix.h index 48c9483b2..7fb1c953a 100644 --- a/quantum/led_matrix.h +++ b/quantum/led_matrix.h | |||
@@ -47,6 +47,9 @@ | |||
47 | uint8_t max = DRIVER_LED_TOTAL; | 47 | uint8_t max = DRIVER_LED_TOTAL; |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #define LED_MATRIX_TEST_LED_FLAGS() \ | ||
51 | if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) continue | ||
52 | |||
50 | enum led_matrix_effects { | 53 | enum led_matrix_effects { |
51 | LED_MATRIX_NONE = 0, | 54 | LED_MATRIX_NONE = 0, |
52 | 55 | ||
@@ -78,36 +81,38 @@ void led_matrix_indicators_user(void); | |||
78 | 81 | ||
79 | void led_matrix_init(void); | 82 | void led_matrix_init(void); |
80 | 83 | ||
81 | void led_matrix_set_suspend_state(bool state); | 84 | void led_matrix_set_suspend_state(bool state); |
82 | bool led_matrix_get_suspend_state(void); | 85 | bool led_matrix_get_suspend_state(void); |
83 | void led_matrix_toggle(void); | 86 | void led_matrix_toggle(void); |
84 | void led_matrix_toggle_noeeprom(void); | 87 | void led_matrix_toggle_noeeprom(void); |
85 | void led_matrix_enable(void); | 88 | void led_matrix_enable(void); |
86 | void led_matrix_enable_noeeprom(void); | 89 | void led_matrix_enable_noeeprom(void); |
87 | void led_matrix_disable(void); | 90 | void led_matrix_disable(void); |
88 | void led_matrix_disable_noeeprom(void); | 91 | void led_matrix_disable_noeeprom(void); |
89 | uint8_t led_matrix_is_enabled(void); | 92 | uint8_t led_matrix_is_enabled(void); |
90 | void led_matrix_mode(uint8_t mode); | 93 | void led_matrix_mode(uint8_t mode); |
91 | void led_matrix_mode_noeeprom(uint8_t mode); | 94 | void led_matrix_mode_noeeprom(uint8_t mode); |
92 | uint8_t led_matrix_get_mode(void); | 95 | uint8_t led_matrix_get_mode(void); |
93 | void led_matrix_step(void); | 96 | void led_matrix_step(void); |
94 | void led_matrix_step_noeeprom(void); | 97 | void led_matrix_step_noeeprom(void); |
95 | void led_matrix_step_reverse(void); | 98 | void led_matrix_step_reverse(void); |
96 | void led_matrix_step_reverse_noeeprom(void); | 99 | void led_matrix_step_reverse_noeeprom(void); |
97 | void led_matrix_set_val(uint8_t val); | 100 | void led_matrix_set_val(uint8_t val); |
98 | void led_matrix_set_val_noeeprom(uint8_t val); | 101 | void led_matrix_set_val_noeeprom(uint8_t val); |
99 | uint8_t led_matrix_get_val(void); | 102 | uint8_t led_matrix_get_val(void); |
100 | void led_matrix_increase_val(void); | 103 | void led_matrix_increase_val(void); |
101 | void led_matrix_increase_val_noeeprom(void); | 104 | void led_matrix_increase_val_noeeprom(void); |
102 | void led_matrix_decrease_val(void); | 105 | void led_matrix_decrease_val(void); |
103 | void led_matrix_decrease_val_noeeprom(void); | 106 | void led_matrix_decrease_val_noeeprom(void); |
104 | void led_matrix_set_speed(uint8_t speed); | 107 | void led_matrix_set_speed(uint8_t speed); |
105 | void led_matrix_set_speed_noeeprom(uint8_t speed); | 108 | void led_matrix_set_speed_noeeprom(uint8_t speed); |
106 | uint8_t led_matrix_get_speed(void); | 109 | uint8_t led_matrix_get_speed(void); |
107 | void led_matrix_increase_speed(void); | 110 | void led_matrix_increase_speed(void); |
108 | void led_matrix_increase_speed_noeeprom(void); | 111 | void led_matrix_increase_speed_noeeprom(void); |
109 | void led_matrix_decrease_speed(void); | 112 | void led_matrix_decrease_speed(void); |
110 | void led_matrix_decrease_speed_noeeprom(void); | 113 | void led_matrix_decrease_speed_noeeprom(void); |
114 | led_flags_t led_matrix_get_flags(void); | ||
115 | void led_matrix_set_flags(led_flags_t flags); | ||
111 | 116 | ||
112 | typedef struct { | 117 | typedef struct { |
113 | /* Perform any initialisation required for the other driver functions to work. */ | 118 | /* Perform any initialisation required for the other driver functions to work. */ |
@@ -126,4 +131,5 @@ extern const led_matrix_driver_t led_matrix_driver; | |||
126 | extern led_eeconfig_t led_matrix_eeconfig; | 131 | extern led_eeconfig_t led_matrix_eeconfig; |
127 | 132 | ||
128 | extern bool g_suspend_state; | 133 | extern bool g_suspend_state; |
134 | extern uint32_t g_led_timer; | ||
129 | extern led_config_t g_led_config; | 135 | extern led_config_t g_led_config; |