diff options
Diffstat (limited to 'tmk_core/common/host.h')
-rw-r--r-- | tmk_core/common/host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/host.h b/tmk_core/common/host.h index aeabba710..e70bb6853 100644 --- a/tmk_core/common/host.h +++ b/tmk_core/common/host.h | |||
@@ -46,6 +46,12 @@ void host_consumer_send(uint16_t data); | |||
46 | uint16_t host_last_system_report(void); | 46 | uint16_t host_last_system_report(void); |
47 | uint16_t host_last_consumer_report(void); | 47 | uint16_t host_last_consumer_report(void); |
48 | 48 | ||
49 | #define IS_LED_ON(USB_LED, LED_NAME) ((USB_LED) & (1 << (LED_NAME))) | ||
50 | #define IS_LED_OFF(USB_LED, LED_NAME) (~(USB_LED) & (1 << (LED_NAME))) | ||
51 | |||
52 | #define IS_HOST_LED_ON(LED_NAME) IS_LED_ON(host_keyboard_leds(), (LED_NAME)) | ||
53 | #define IS_HOST_LED_OFF(LED_NAME) IS_LED_OFF(host_keyboard_leds(), (LED_NAME)) | ||
54 | |||
49 | #ifdef __cplusplus | 55 | #ifdef __cplusplus |
50 | } | 56 | } |
51 | #endif | 57 | #endif |