mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-14 16:24:18 +03:00
6b3625f46b
* Update the HID Keycodes to pull from the library * Composite BLE Report Map, add consumer & mouse HID * Add Mouse & keyboard bt remote, fixed media remote * BT Keyboard remove long press shift * Fix usb hid modifier keys * Fixed misaligned bad usb keys * Fix keyboard app keys * Partial fix for bt app and linux * Update to work across platforms * Fix for report ids * BtHidApp: move variable from bss to model, cleanup naming. * FuriHal: add const to immutable data declaration Co-authored-by: あく <alleteam@gmail.com>
29 lines
769 B
C
29 lines
769 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#define HID_SVC_REPORT_MAP_MAX_LEN (255)
|
|
#define HID_SVC_REPORT_MAX_LEN (255)
|
|
#define HID_SVC_REPORT_REF_LEN (2)
|
|
#define HID_SVC_INFO_LEN (4)
|
|
#define HID_SVC_CONTROL_POINT_LEN (1)
|
|
|
|
#define HID_SVC_INPUT_REPORT_COUNT (3)
|
|
#define HID_SVC_OUTPUT_REPORT_COUNT (0)
|
|
#define HID_SVC_FEATURE_REPORT_COUNT (0)
|
|
#define HID_SVC_REPORT_COUNT \
|
|
(HID_SVC_INPUT_REPORT_COUNT + HID_SVC_OUTPUT_REPORT_COUNT + HID_SVC_FEATURE_REPORT_COUNT)
|
|
|
|
void hid_svc_start();
|
|
|
|
void hid_svc_stop();
|
|
|
|
bool hid_svc_is_started();
|
|
|
|
bool hid_svc_update_report_map(const uint8_t* data, uint16_t len);
|
|
|
|
bool hid_svc_update_input_report(uint8_t input_report_num, uint8_t* data, uint16_t len);
|
|
|
|
bool hid_svc_update_info(uint8_t* data, uint16_t len);
|