btstack_event: add GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE

This commit is contained in:
Matthias Ringwald 2018-02-01 13:50:36 +01:00
parent 047a7fd38a
commit 71af96a130
2 changed files with 18 additions and 0 deletions

View File

@ -728,6 +728,12 @@ typedef uint8_t sm_key_t[16];
*/
#define GATT_EVENT_MTU 0xAB
/**
* @format H
* @param handle
*/
#define GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE 0xAC
/**
* @format H2
* @param handle

View File

@ -2104,6 +2104,18 @@ static inline uint16_t gatt_event_mtu_get_MTU(const uint8_t * event){
}
#endif
#ifdef ENABLE_BLE
/**
* @brief Get field handle from event GATT_EVENT_CAN_WRITE_WITHOUT_RESPONSE
* @param event packet
* @return handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gatt_event_can_write_without_response_get_handle(const uint8_t * event){
return little_endian_read_16(event, 2);
}
#endif
/**
* @brief Get field handle from event ATT_EVENT_MTU_EXCHANGE_COMPLETE
* @param event packet