mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
btstack_defines: add HIDS_SUBEVENT_SET_REPORT
This commit is contained in:
parent
086ea75f51
commit
5025ae2efa
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user