sxkbd

Firmware for RP2040-based corne split keyboard
git clone https://git.sinitax.com/sinitax/sxkbd
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

hid.h (517B)


      1 #pragma once
      2 
      3 #include "keymat.h"
      4 
      5 #include <stdbool.h>
      6 #include <stdint.h>
      7 
      8 #define MACRO_HOLD_MAX 32
      9 
     10 #define REPORT_ID_NONE 0
     11 
     12 #define REPORT_ID_MIN 1
     13 
     14 enum {
     15 	REPORT_ID_MOUSE = REPORT_ID_MIN,
     16 	REPORT_ID_CONSUMER,
     17 	REPORT_ID_SYSTEM,
     18 	REPORT_ID_GAMEPAD,
     19 	REPORT_ID_MAX
     20 };
     21 
     22 enum {
     23 	INST_HID_KBD,
     24 	INST_HID_MISC
     25 };
     26 
     27 void hid_init(void);
     28 void hid_force_release(uint x, uint y);
     29 void hid_switch_layer_with_key(uint8_t layer, uint x, uint y);
     30 void hid_send_macro(const uint32_t *keysyms, uint cnt);
     31 void hid_task(void);