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
     14enum {
     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
     22enum {
     23	INST_HID_KBD,
     24	INST_HID_MISC
     25};
     26
     27void hid_init(void);
     28void hid_force_release(uint x, uint y);
     29void hid_switch_layer_with_key(uint8_t layer, uint x, uint y);
     30void hid_send_macro(const uint32_t *keysyms, uint cnt);
     31void hid_task(void);