2022-07-08 10:50:17 -07:00
|
|
|
#pragma once
|
|
|
|
#include "raw_hid.h"
|
|
|
|
|
2023-12-19 12:04:38 -08:00
|
|
|
#define RAW_EPSIZE 32
|
|
|
|
|
2022-07-08 10:50:17 -07:00
|
|
|
|
|
|
|
void raw_hid_receive(uint8_t *data, uint8_t length);
|
|
|
|
|
|
|
|
|
2022-07-21 14:09:50 -07:00
|
|
|
// hid_send_state with advanced arguments
|
|
|
|
typedef struct {
|
|
|
|
uint32_t state;
|
|
|
|
} _hid_send_state_args;
|
|
|
|
void _hid_send_state(_hid_send_state_args args);
|
|
|
|
|
|
|
|
#define hid_send_state(...) _hid_send_state( \
|
|
|
|
(_hid_send_state_args) { \
|
|
|
|
.state = 0, \
|
|
|
|
__VA_ARGS__ \
|
|
|
|
} \
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2022-08-10 09:11:09 -07:00
|
|
|
void hid_send_special_char(uint16_t char_utf_8);
|
|
|
|
|
2022-11-20 20:45:13 -08:00
|
|
|
#ifdef ENABLE_HID_SPELLCHECK
|
2022-07-21 17:49:35 -07:00
|
|
|
void hid_send_word(void);
|
2022-07-08 10:50:17 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-07-21 17:49:35 -07:00
|
|
|
#ifdef ENABLE_RGB_MATRIX_FFT_ANIM
|
|
|
|
void cmd_animation(uint8_t *data, uint8_t length);
|
|
|
|
extern uint8_t g_rgb_frame_buffer[MATRIX_ROWS][MATRIX_COLS];
|
|
|
|
#endif
|