diff --git a/src/btstack_defines.h b/src/btstack_defines.h index fd874778f..7087bafa3 100644 --- a/src/btstack_defines.h +++ b/src/btstack_defines.h @@ -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 /** diff --git a/src/btstack_event.h b/src/btstack_event.h index 2dc105cb3..27caee84d 100644 --- a/src/btstack_event.h +++ b/src/btstack_event.h @@ -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