btstack_defines: add HIDS_SUBEVENT_SET_REPORT

This commit is contained in:
Matthias Ringwald 2023-09-18 16:38:55 +02:00
parent 086ea75f51
commit 5025ae2efa
2 changed files with 57 additions and 0 deletions

View File

@ -3904,6 +3904,17 @@ typedef uint8_t sm_key_t[16];
*/ */
#define HIDS_SUBEVENT_EXIT_SUSPEND 0x09u #define HIDS_SUBEVENT_EXIT_SUSPEND 0x09u
/**
* @format 1211JV
* @param subevent_code
* @param con_handle
* @param report_id
* @param report_type
* @param report_length
* @param report_data
*/
#define HIDS_SUBEVENT_SET_REPORT 0x0au
/** /**
* @format 1211 * @format 1211
* @param subevent_code * @param subevent_code

View File

@ -12481,6 +12481,52 @@ static inline uint16_t hids_subevent_exit_suspend_get_con_handle(const uint8_t *
return little_endian_read_16(event, 3); return little_endian_read_16(event, 3);
} }
/**
* @brief Get field con_handle from event HIDS_SUBEVENT_SET_REPORT
* @param event packet
* @return con_handle
* @note: btstack_type 2
*/
static inline uint16_t hids_subevent_set_report_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field report_id from event HIDS_SUBEVENT_SET_REPORT
* @param event packet
* @return report_id
* @note: btstack_type 1
*/
static inline uint8_t hids_subevent_set_report_get_report_id(const uint8_t * event){
return event[5];
}
/**
* @brief Get field report_type from event HIDS_SUBEVENT_SET_REPORT
* @param event packet
* @return report_type
* @note: btstack_type 1
*/
static inline uint8_t hids_subevent_set_report_get_report_type(const uint8_t * event){
return event[6];
}
/**
* @brief Get field report_length from event HIDS_SUBEVENT_SET_REPORT
* @param event packet
* @return report_length
* @note: btstack_type J
*/
static inline uint8_t hids_subevent_set_report_get_report_length(const uint8_t * event){
return event[7];
}
/**
* @brief Get field report_data from event HIDS_SUBEVENT_SET_REPORT
* @param event packet
* @return report_data
* @note: btstack_type V
*/
static inline const uint8_t * hids_subevent_set_report_get_report_data(const uint8_t * event){
return &event[8];
}
/** /**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_CYCLING_POWER_START_CALIBRATION
* @param event packet * @param event packet