mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-04 01:13:40 +00:00
btstack_defines: add packet length to HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
This commit is contained in:
parent
090c81feb6
commit
24e29f2b5e
@ -2043,7 +2043,7 @@ typedef uint8_t sm_key_t[16];
|
||||
#define HFP_SUBEVENT_SERVICE_LEVEL_CONNECTION_RELEASED 0x02u
|
||||
|
||||
/**
|
||||
* @format 1H1HB12
|
||||
* @format 1H1HB1222
|
||||
* @param subevent_code
|
||||
* @param acl_handle
|
||||
* @param status 0 == OK
|
||||
@ -2051,6 +2051,8 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param bd_addr
|
||||
* @param negotiated_codec
|
||||
* @param sco_packet_types see SCO_PACKET_TYPES_* in btstack_defines.h
|
||||
* @param rx_packet_length
|
||||
* @param tx_packet_length
|
||||
*/
|
||||
#define HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED 0x03u
|
||||
|
||||
|
@ -6031,6 +6031,24 @@ static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_c
|
||||
static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){
|
||||
return little_endian_read_16(event, 15);
|
||||
}
|
||||
/**
|
||||
* @brief Get field rx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
|
||||
* @param event packet
|
||||
* @return rx_packet_length
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hfp_subevent_audio_connection_established_get_rx_packet_length(const uint8_t * event){
|
||||
return little_endian_read_16(event, 17);
|
||||
}
|
||||
/**
|
||||
* @brief Get field tx_packet_length from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
|
||||
* @param event packet
|
||||
* @return tx_packet_length
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hfp_subevent_audio_connection_established_get_tx_packet_length(const uint8_t * event){
|
||||
return little_endian_read_16(event, 19);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
|
||||
|
Loading…
x
Reference in New Issue
Block a user