f0d4584b40
* view_dispatcher: add default back processing for Long events * assets: add ble connected and disconnected assets * bt keyboard: introduce new application * bt keyboard: add logic to keyboard mode * bt: remove debug ble hid application * bt hid: introduce media controller * gui canvas: rename CanvasFontDirection -> CanvasDirection * gui canvas: add arrow element * assets: update finilized assets * bt hid: finalise keynote GUI * bt hid: finalise media player GUI * bt: add media key buttons support * bt: add exit confirm view * bt: change Clicker -> Remote * bt: support f6 target * bt: hopefully final bt hid design * bt hid: add blue led notification when device is connected * bt: leave only bt clicker for now * bt: add display notification on pin code show event
24 lines
544 B
C
24 lines
544 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#define HID_SVC_REPORT_MAP_MAX_LEN (120)
|
|
#define HID_SVC_REPORT_MAX_LEN (9)
|
|
#define HID_SVC_BOOT_KEYBOARD_INPUT_REPORT_MAX_LEN (8)
|
|
#define HID_SVC_REPORT_REF_LEN (2)
|
|
#define HID_SVC_INFO_LEN (4)
|
|
#define HID_SVC_CONTROL_POINT_LEN (1)
|
|
|
|
void hid_svc_start();
|
|
|
|
void hid_svc_stop();
|
|
|
|
bool hid_svc_is_started();
|
|
|
|
bool hid_svc_update_report_map(uint8_t* data, uint16_t len);
|
|
|
|
bool hid_svc_update_input_report(uint8_t* data, uint16_t len);
|
|
|
|
bool hid_svc_update_info(uint8_t* data, uint16_t len);
|