mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-25 16:43:28 +00:00
btstack_hid: prefix functions
This commit is contained in:
parent
20eba63f8a
commit
e9933dfec4
@ -155,10 +155,10 @@ static void hid_handle_input_report(uint8_t service_index, const uint8_t * repor
|
||||
|
||||
switch (protocol_mode){
|
||||
case HID_PROTOCOL_MODE_BOOT:
|
||||
btstack_hid_parser_init(&parser,
|
||||
hid_get_boot_descriptor_data(),
|
||||
hid_get_boot_descriptor_len(),
|
||||
HID_REPORT_TYPE_INPUT, report, report_len);
|
||||
btstack_hid_parser_init(&parser,
|
||||
btstack_hid_get_boot_descriptor_data(),
|
||||
btstack_hid_get_boot_descriptor_len(),
|
||||
HID_REPORT_TYPE_INPUT, report, report_len);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
// from USB HID Specification 1.1, Appendix B.1
|
||||
const uint8_t hid_descriptor_boot_mode[] = {
|
||||
const uint8_t btstack_hid_descriptor_boot_mode[] = {
|
||||
// Keyboard
|
||||
|
||||
0x05, 0x01, // Usage Page (Generic Desktop)
|
||||
@ -131,11 +131,11 @@ const uint8_t hid_descriptor_boot_mode[] = {
|
||||
0xc0 // END_COLLECTION
|
||||
};
|
||||
|
||||
const uint8_t * hid_get_boot_descriptor_data(void){
|
||||
return &hid_descriptor_boot_mode[0];
|
||||
const uint8_t * btstack_hid_get_boot_descriptor_data(void){
|
||||
return &btstack_hid_descriptor_boot_mode[0];
|
||||
}
|
||||
|
||||
uint16_t hid_get_boot_descriptor_len(void){
|
||||
return sizeof(hid_descriptor_boot_mode);
|
||||
uint16_t btstack_hid_get_boot_descriptor_len(void){
|
||||
return sizeof(btstack_hid_descriptor_boot_mode);
|
||||
}
|
||||
|
||||
|
@ -117,13 +117,13 @@ typedef enum {
|
||||
* @brief Get boot descriptor data
|
||||
* @result data
|
||||
*/
|
||||
const uint8_t * hid_get_boot_descriptor_data(void);
|
||||
const uint8_t * btstack_hid_get_boot_descriptor_data(void);
|
||||
|
||||
/*
|
||||
* @brief Get boot descriptor length
|
||||
* @result length
|
||||
*/
|
||||
uint16_t hid_get_boot_descriptor_len(void);
|
||||
uint16_t btstack_hid_get_boot_descriptor_len(void);
|
||||
|
||||
/* API_END */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user