mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
hid_host: define HID_SUBEVENT_SNIFF_SUBRATING_PARAMS event
This commit is contained in:
parent
50fe3a99b5
commit
fee1f3a79e
@ -2978,6 +2978,14 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define HID_SUBEVENT_DESCRIPTOR_AVAILABLE 0x0D
|
||||
|
||||
/**
|
||||
* @format 1222
|
||||
* @param subevent_code
|
||||
* @param hid_cid
|
||||
* @param host_max_latency
|
||||
* @param host_min_timeout
|
||||
*/
|
||||
#define HID_SUBEVENT_SNIFF_SUBRATING_PARAMS 0x0E
|
||||
|
||||
// HIDS Meta Event Group
|
||||
|
||||
|
@ -8884,6 +8884,34 @@ static inline uint8_t hid_subevent_descriptor_available_get_status(const uint8_t
|
||||
return event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field hid_cid from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
|
||||
* @param event packet
|
||||
* @return hid_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hid_subevent_sniff_subrating_params_get_hid_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field host_max_latency from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
|
||||
* @param event packet
|
||||
* @return host_max_latency
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hid_subevent_sniff_subrating_params_get_host_max_latency(const uint8_t * event){
|
||||
return little_endian_read_16(event, 5);
|
||||
}
|
||||
/**
|
||||
* @brief Get field host_min_timeout from event HID_SUBEVENT_SNIFF_SUBRATING_PARAMS
|
||||
* @param event packet
|
||||
* @return host_min_timeout
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hid_subevent_sniff_subrating_params_get_host_min_timeout(const uint8_t * event){
|
||||
return little_endian_read_16(event, 7);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field con_handle from event HIDS_SUBEVENT_CAN_SEND_NOW
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user