Loading...
Searching...
No Matches
hid_service.h
1#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct BleServiceHid BleServiceHid;
11
12BleServiceHid* ble_svc_hid_start(void);
13
14void ble_svc_hid_stop(BleServiceHid* service);
15
16bool ble_svc_hid_update_report_map(BleServiceHid* service, const uint8_t* data, uint16_t len);
17
18bool ble_svc_hid_update_input_report(
19 BleServiceHid* service,
20 uint8_t input_report_num,
21 uint8_t* data,
22 uint16_t len);
23
24// Expects data to be of length BLE_SVC_HID_INFO_LEN (4 bytes)
25bool ble_svc_hid_update_info(BleServiceHid* service, uint8_t* data);
26
27#ifdef __cplusplus
28}
29#endif
Definition hid_service.c:144