mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-27 03:39:56 +00:00
hids_client: define GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION event
This commit is contained in:
parent
6d6f7efc52
commit
5b4ead15f4
@ -3253,6 +3253,14 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define GATTSERVICE_SUBEVENT_HID_PROTOCOL_MODE 0x16
|
||||
|
||||
/**
|
||||
* @format 121
|
||||
* @param subevent_code
|
||||
* @param hids_cid
|
||||
* @param configuration
|
||||
*/
|
||||
#define GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION 0x17
|
||||
|
||||
// MAP Meta Event Group
|
||||
|
||||
/**
|
||||
|
@ -9680,6 +9680,25 @@ static inline uint8_t gattservice_subevent_hid_protocol_mode_get_protocol_mode(c
|
||||
return event[6];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
|
||||
* @param event packet
|
||||
* @return hids_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t gattservice_subevent_hid_service_reports_notification_get_hids_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field configuration from event GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION
|
||||
* @param event packet
|
||||
* @return configuration
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user