mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
29 lines
No EOL
621 B
C
29 lines
No EOL
621 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct BleServiceHid BleServiceHid;
|
|
|
|
BleServiceHid* ble_svc_hid_start(void);
|
|
|
|
void ble_svc_hid_stop(BleServiceHid* service);
|
|
|
|
bool ble_svc_hid_update_report_map(BleServiceHid* service, const uint8_t* data, uint16_t len);
|
|
|
|
bool ble_svc_hid_update_input_report(
|
|
BleServiceHid* service,
|
|
uint8_t input_report_num,
|
|
uint8_t* data,
|
|
uint16_t len);
|
|
|
|
// Expects data to be of length BLE_SVC_HID_INFO_LEN (4 bytes)
|
|
bool ble_svc_hid_update_info(BleServiceHid* service, uint8_t* data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |