mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +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){
|
switch (protocol_mode){
|
||||||
case HID_PROTOCOL_MODE_BOOT:
|
case HID_PROTOCOL_MODE_BOOT:
|
||||||
btstack_hid_parser_init(&parser,
|
btstack_hid_parser_init(&parser,
|
||||||
hid_get_boot_descriptor_data(),
|
btstack_hid_get_boot_descriptor_data(),
|
||||||
hid_get_boot_descriptor_len(),
|
btstack_hid_get_boot_descriptor_len(),
|
||||||
HID_REPORT_TYPE_INPUT, report, report_len);
|
HID_REPORT_TYPE_INPUT, report, report_len);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// from USB HID Specification 1.1, Appendix B.1
|
// 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
|
// Keyboard
|
||||||
|
|
||||||
0x05, 0x01, // Usage Page (Generic Desktop)
|
0x05, 0x01, // Usage Page (Generic Desktop)
|
||||||
@ -131,11 +131,11 @@ const uint8_t hid_descriptor_boot_mode[] = {
|
|||||||
0xc0 // END_COLLECTION
|
0xc0 // END_COLLECTION
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint8_t * hid_get_boot_descriptor_data(void){
|
const uint8_t * btstack_hid_get_boot_descriptor_data(void){
|
||||||
return &hid_descriptor_boot_mode[0];
|
return &btstack_hid_descriptor_boot_mode[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t hid_get_boot_descriptor_len(void){
|
uint16_t btstack_hid_get_boot_descriptor_len(void){
|
||||||
return sizeof(hid_descriptor_boot_mode);
|
return sizeof(btstack_hid_descriptor_boot_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,13 +117,13 @@ typedef enum {
|
|||||||
* @brief Get boot descriptor data
|
* @brief Get boot descriptor data
|
||||||
* @result 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
|
* @brief Get boot descriptor length
|
||||||
* @result length
|
* @result length
|
||||||
*/
|
*/
|
||||||
uint16_t hid_get_boot_descriptor_len(void);
|
uint16_t btstack_hid_get_boot_descriptor_len(void);
|
||||||
|
|
||||||
/* API_END */
|
/* API_END */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user