aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/host.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/host.h')
-rw-r--r--tmk_core/common/host.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/tmk_core/common/host.h b/tmk_core/common/host.h
index 3d172eed6..b2a7f9842 100644
--- a/tmk_core/common/host.h
+++ b/tmk_core/common/host.h
@@ -22,11 +22,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
22#include "report.h" 22#include "report.h"
23#include "host_driver.h" 23#include "host_driver.h"
24 24
25#define IS_LED_ON(leds, led_name) ( (leds) & (1 << (led_name))) 25#define IS_LED_ON(leds, led_name) ((leds) & (1 << (led_name)))
26#define IS_LED_OFF(leds, led_name) (~(leds) & (1 << (led_name))) 26#define IS_LED_OFF(leds, led_name) (~(leds) & (1 << (led_name)))
27 27
28#define IS_HOST_LED_ON(led_name) IS_LED_ON(host_keyboard_leds(), led_name) 28#define IS_HOST_LED_ON(led_name) IS_LED_ON(host_keyboard_leds(), led_name)
29#define IS_HOST_LED_OFF(led_name) IS_LED_OFF(host_keyboard_leds(), led_name) 29#define IS_HOST_LED_OFF(led_name) IS_LED_OFF(host_keyboard_leds(), led_name)
30 30
31#ifdef __cplusplus 31#ifdef __cplusplus
32extern "C" { 32extern "C" {
@@ -36,15 +36,15 @@ extern uint8_t keyboard_idle;
36extern uint8_t keyboard_protocol; 36extern uint8_t keyboard_protocol;
37 37
38/* host driver */ 38/* host driver */
39void host_set_driver(host_driver_t *driver); 39void host_set_driver(host_driver_t *driver);
40host_driver_t *host_get_driver(void); 40host_driver_t *host_get_driver(void);
41 41
42/* host driver interface */ 42/* host driver interface */
43uint8_t host_keyboard_leds(void); 43uint8_t host_keyboard_leds(void);
44void host_keyboard_send(report_keyboard_t *report); 44void host_keyboard_send(report_keyboard_t *report);
45void host_mouse_send(report_mouse_t *report); 45void host_mouse_send(report_mouse_t *report);
46void host_system_send(uint16_t data); 46void host_system_send(uint16_t data);
47void host_consumer_send(uint16_t data); 47void host_consumer_send(uint16_t data);
48 48
49uint16_t host_last_system_report(void); 49uint16_t host_last_system_report(void);
50uint16_t host_last_consumer_report(void); 50uint16_t host_last_consumer_report(void);