btstack_defines: add setup_connection_response

This commit is contained in:
Matthias Ringwald 2024-12-09 18:23:40 +01:00
parent b14ca7e1e2
commit 0295d888da
2 changed files with 11 additions and 1 deletions

View File

@ -1623,7 +1623,7 @@ typedef uint8_t sm_key_t[16];
#define BNEP_EVENT_SERVICE_REGISTERED 0xC0u
/**
* @format 12222BH
* @format 12222BH1
* @param status
* @param bnep_cid
* @param source_uuid
@ -1631,6 +1631,7 @@ typedef uint8_t sm_key_t[16];
* @param mtu
* @param remote_address
* @param con_handle
* @param setup_connection_response for outgoing connections
*/
#define BNEP_EVENT_CHANNEL_OPENED 0xC1u

View File

@ -3505,6 +3505,15 @@ static inline void bnep_event_channel_opened_get_remote_address(const uint8_t *
static inline hci_con_handle_t bnep_event_channel_opened_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 17);
}
/**
* @brief Get field setup_connection_response from event BNEP_EVENT_CHANNEL_OPENED
* @param event packet
* @return setup_connection_response
* @note: btstack_type 1
*/
static inline uint8_t bnep_event_channel_opened_get_setup_connection_response(const uint8_t * event){
return event[19];
}
/**
* @brief Get field bnep_cid from event BNEP_EVENT_CHANNEL_CLOSED