hids_client: define GATTSERVICE_SUBEVENT_HID_SERVICE_REPORTS_NOTIFICATION event

This commit is contained in:
Milanka Ringwald 2021-03-30 11:16:51 +02:00
parent 6d6f7efc52
commit 5b4ead15f4
2 changed files with 27 additions and 0 deletions

View File

@ -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
/**

View File

@ -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