mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
a2dp source: add A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE event, rename related AVDTP event into AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
This commit is contained in:
parent
b29030856d
commit
0f5bb594a6
@ -1611,7 +1611,7 @@ typedef uint8_t sm_key_t[16];
|
|||||||
* @param local_seid
|
* @param local_seid
|
||||||
* @param remote_seid
|
* @param remote_seid
|
||||||
*/
|
*/
|
||||||
#define AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE 0x15
|
#define AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 0x15
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1769,6 +1769,16 @@ typedef uint8_t sm_key_t[16];
|
|||||||
*/
|
*/
|
||||||
#define A2DP_SUBEVENT_STREAM_RECONFIGURED 0x0D
|
#define A2DP_SUBEVENT_STREAM_RECONFIGURED 0x0D
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @format 1211
|
||||||
|
* @param subevent_code
|
||||||
|
* @param avdtp_cid
|
||||||
|
* @param local_seid
|
||||||
|
* @param remote_seid
|
||||||
|
*/
|
||||||
|
#define A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY 0x0E
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @format 1212
|
* @format 1212
|
||||||
* @param subevent_code
|
* @param subevent_code
|
||||||
@ -1776,8 +1786,16 @@ typedef uint8_t sm_key_t[16];
|
|||||||
* @param local_seid
|
* @param local_seid
|
||||||
* @param delay_100us
|
* @param delay_100us
|
||||||
*/
|
*/
|
||||||
#define A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 0x0E
|
#define A2DP_SUBEVENT_SIGNALING_DELAY_REPORT 0x0F
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @format 1211
|
||||||
|
* @param subevent_code
|
||||||
|
* @param avdtp_cid
|
||||||
|
* @param local_seid
|
||||||
|
* @param remote_seid
|
||||||
|
*/
|
||||||
|
#define A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE 0x10
|
||||||
|
|
||||||
/** AVRCP Subevent */
|
/** AVRCP Subevent */
|
||||||
|
|
||||||
|
@ -5231,30 +5231,30 @@ static inline uint16_t avdtp_subevent_streaming_can_send_media_packet_now_get_se
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
|
* @brief Get field avdtp_cid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
|
||||||
* @param event packet
|
* @param event packet
|
||||||
* @return avdtp_cid
|
* @return avdtp_cid
|
||||||
* @note: btstack_type 2
|
* @note: btstack_type 2
|
||||||
*/
|
*/
|
||||||
static inline uint16_t avdtp_subevent_signaling_capability_done_get_avdtp_cid(const uint8_t * event){
|
static inline uint16_t avdtp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){
|
||||||
return little_endian_read_16(event, 3);
|
return little_endian_read_16(event, 3);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
|
* @brief Get field local_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
|
||||||
* @param event packet
|
* @param event packet
|
||||||
* @return local_seid
|
* @return local_seid
|
||||||
* @note: btstack_type 1
|
* @note: btstack_type 1
|
||||||
*/
|
*/
|
||||||
static inline uint8_t avdtp_subevent_signaling_capability_done_get_local_seid(const uint8_t * event){
|
static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_local_seid(const uint8_t * event){
|
||||||
return event[5];
|
return event[5];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITY_DONE
|
* @brief Get field remote_seid from event AVDTP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
|
||||||
* @param event packet
|
* @param event packet
|
||||||
* @return remote_seid
|
* @return remote_seid
|
||||||
* @note: btstack_type 1
|
* @note: btstack_type 1
|
||||||
*/
|
*/
|
||||||
static inline uint8_t avdtp_subevent_signaling_capability_done_get_remote_seid(const uint8_t * event){
|
static inline uint8_t avdtp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
|
||||||
return event[6];
|
return event[6];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5750,6 +5750,34 @@ static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t
|
|||||||
return event[6];
|
return event[6];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get field avdtp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
|
||||||
|
* @param event packet
|
||||||
|
* @return avdtp_cid
|
||||||
|
* @note: btstack_type 2
|
||||||
|
*/
|
||||||
|
static inline uint16_t a2dp_subevent_signaling_delay_reporting_capability_get_avdtp_cid(const uint8_t * event){
|
||||||
|
return little_endian_read_16(event, 3);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
|
||||||
|
* @param event packet
|
||||||
|
* @return local_seid
|
||||||
|
* @note: btstack_type 1
|
||||||
|
*/
|
||||||
|
static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_local_seid(const uint8_t * event){
|
||||||
|
return event[5];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORTING_CAPABILITY
|
||||||
|
* @param event packet
|
||||||
|
* @return remote_seid
|
||||||
|
* @note: btstack_type 1
|
||||||
|
*/
|
||||||
|
static inline uint8_t a2dp_subevent_signaling_delay_reporting_capability_get_remote_seid(const uint8_t * event){
|
||||||
|
return event[6];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get field avdtp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
|
* @brief Get field avdtp_cid from event A2DP_SUBEVENT_SIGNALING_DELAY_REPORT
|
||||||
* @param event packet
|
* @param event packet
|
||||||
@ -5778,6 +5806,34 @@ static inline uint16_t a2dp_subevent_signaling_delay_report_get_delay_100us(cons
|
|||||||
return little_endian_read_16(event, 6);
|
return little_endian_read_16(event, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get field avdtp_cid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
|
||||||
|
* @param event packet
|
||||||
|
* @return avdtp_cid
|
||||||
|
* @note: btstack_type 2
|
||||||
|
*/
|
||||||
|
static inline uint16_t a2dp_subevent_signaling_capabilities_done_get_avdtp_cid(const uint8_t * event){
|
||||||
|
return little_endian_read_16(event, 3);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
|
||||||
|
* @param event packet
|
||||||
|
* @return local_seid
|
||||||
|
* @note: btstack_type 1
|
||||||
|
*/
|
||||||
|
static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_local_seid(const uint8_t * event){
|
||||||
|
return event[5];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @brief Get field remote_seid from event A2DP_SUBEVENT_SIGNALING_CAPABILITIES_DONE
|
||||||
|
* @param event packet
|
||||||
|
* @return remote_seid
|
||||||
|
* @note: btstack_type 1
|
||||||
|
*/
|
||||||
|
static inline uint8_t a2dp_subevent_signaling_capabilities_done_get_remote_seid(const uint8_t * event){
|
||||||
|
return event[6];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
|
* @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
|
||||||
* @param event packet
|
* @param event packet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user