From 49d18261c12f48d67267b4ef693a6f392695c3ce Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 1 Apr 2016 10:49:12 +0200 Subject: [PATCH] events: add ATT_EVENT_CAN_SEND_NOW, document BNEP events --- src/btstack_defines.h | 58 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/src/btstack_defines.h b/src/btstack_defines.h index 33c08eae1..1a0467f1a 100644 --- a/src/btstack_defines.h +++ b/src/btstack_defines.h @@ -623,24 +623,62 @@ typedef uint8_t sm_key_t[16]; */ #define ATT_EVENT_MTU_EXCHANGE_COMPLETE 0xB5 -// data: event(8), len(8), status (8), hci_handle (16), attribute_handle (16) + /** + * @format 1H2 + * @param status + * @param conn_handle + * @param attribute_handle + */ #define ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE 0xB6 +/** + * @format + */ +#define ATT_EVENT_CAN_SEND_NOW 0xB7 -// data: event(8), len(8), status (8), bnep service uuid (16) -#define BNEP_EVENT_SERVICE_REGISTERED 0xC0 +// TODO: daemon only event -// data: event(8), len(8), status (8), bnep source uuid (16), bnep destination uuid (16), mtu (16), remote_address (48) -#define BNEP_EVENT_OPEN_CHANNEL_COMPLETE 0xC1 +/** + * @format 12 + * @param status + * @param service_uuid + */ + #define BNEP_EVENT_SERVICE_REGISTERED 0xC0 -// data: event(8), len(8), bnep source uuid (16), bnep destination uuid (16), remote_address (48) -#define BNEP_EVENT_CHANNEL_CLOSED 0xC2 +/** + * @format 1222B + * @param status + * @param source_uuid + * @param destination_uuid + * @param mtu + * @param remote_address + */ + #define BNEP_EVENT_OPEN_CHANNEL_COMPLETE 0xC1 -// data: event(8), len(8), bnep source uuid (16), bnep destination uuid (16), remote_address (48), channel state (8) +/** + * @format 22B + * @param source_uuid + * @param destination_uuid + * @param remote_address + */ + #define BNEP_EVENT_CHANNEL_CLOSED 0xC2 + +/** + * @format 22B1 + * @param source_uuid + * @param destination_uuid + * @param remote_address + * @param channel_state + */ #define BNEP_EVENT_CHANNEL_TIMEOUT 0xC3 -// data: event(8), len(8) -#define BNEP_EVENT_CAN_SEND_NOW 0xC4 +/** + * @format 22B + * @param source_uuid + * @param destination_uuid + * @param remote_address + */ + #define BNEP_EVENT_CAN_SEND_NOW 0xC4 /** * @format H1B