aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/host.h
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-11-06 11:42:16 +1100
committerJoel Challis <git@zvecr.com>2019-11-06 00:42:16 +0000
commitdfb78d2a086daa2ceb3fd043afce03785abfa23a (patch)
tree7cd724b1cd12a65025bbc9d3cb32d7dd39cb9928 /tmk_core/common/host.h
parented0575fc8aacdfdd83a31fc98df2b1cad2e977f4 (diff)
downloadqmk_firmware-dfb78d2a086daa2ceb3fd043afce03785abfa23a.tar.gz
qmk_firmware-dfb78d2a086daa2ceb3fd043afce03785abfa23a.zip
New and improved lock LED callbacks (#7215)
* New and improved lock LED callbacks * Include stdbool * Update documentation * Use full function signatures and add keyboard-level example
Diffstat (limited to 'tmk_core/common/host.h')
-rw-r--r--tmk_core/common/host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/common/host.h b/tmk_core/common/host.h
index b2a7f9842..2cffef6e1 100644
--- a/tmk_core/common/host.h
+++ b/tmk_core/common/host.h
@@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include <stdbool.h> 21#include <stdbool.h>
22#include "report.h" 22#include "report.h"
23#include "host_driver.h" 23#include "host_driver.h"
24#include "led.h"
24 25
25#define IS_LED_ON(leds, led_name) ((leds) & (1 << (led_name))) 26#define IS_LED_ON(leds, led_name) ((leds) & (1 << (led_name)))
26#define IS_LED_OFF(leds, led_name) (~(leds) & (1 << (led_name))) 27#define IS_LED_OFF(leds, led_name) (~(leds) & (1 << (led_name)))
@@ -41,6 +42,7 @@ host_driver_t *host_get_driver(void);
41 42
42/* host driver interface */ 43/* host driver interface */
43uint8_t host_keyboard_leds(void); 44uint8_t host_keyboard_leds(void);
45led_t host_keyboard_led_state(void);
44void host_keyboard_send(report_keyboard_t *report); 46void host_keyboard_send(report_keyboard_t *report);
45void host_mouse_send(report_mouse_t *report); 47void host_mouse_send(report_mouse_t *report);
46void host_system_send(uint16_t data); 48void host_system_send(uint16_t data);