mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-27 03:39:56 +00:00
hid_host: add new HID_SUBEVENT_DESCRIPTOR_AVAILABLE event
This commit is contained in:
parent
5f0d88b06f
commit
33d66f0378
@ -2963,6 +2963,14 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define HID_SUBEVENT_REPORT 0x0C
|
||||
|
||||
/**
|
||||
* @format 121
|
||||
* @param subevent_code
|
||||
* @param hid_cid
|
||||
* @param status
|
||||
*/
|
||||
#define HID_SUBEVENT_DESCRIPTOR_AVAILABLE 0x0D
|
||||
|
||||
|
||||
// HIDS Meta Event Group
|
||||
|
||||
|
@ -8846,6 +8846,25 @@ static inline const uint8_t * hid_subevent_report_get_report(const uint8_t * eve
|
||||
return &event[7];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field hid_cid from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
|
||||
* @param event packet
|
||||
* @return hid_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hid_subevent_descriptor_available_get_hid_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field status from event HID_SUBEVENT_DESCRIPTOR_AVAILABLE
|
||||
* @param event packet
|
||||
* @return status
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user