add LE Credit Based Flow Control signaling packet definitions

This commit is contained in:
Matthias Ringwald 2015-08-12 12:05:44 +02:00
parent 5583798654
commit 99b3db5468
2 changed files with 20 additions and 13 deletions

View File

@ -63,6 +63,9 @@ static const char *l2cap_signaling_commands_format[] = {
// skip 6 not supported signaling pdus, see below
"2222", // 0x12 connection parameter update request: interval min, interval max, slave latency, timeout multipler
"2", // 0x13 connection parameter update response: result
"22222", // 0X14 le credit based connection request: le psm, source cid, mtu, mps, initial credits
"22222", // 0x15 le credit based connection respone: dest cid, mtu, mps, initial credits, result
"22", // 0x16 le flow control credit: source cid, credits
#endif
};

View File

@ -65,9 +65,13 @@ typedef enum {
ECHO_RESPONSE,
INFORMATION_REQUEST,
INFORMATION_RESPONSE,
/* 0x0c - 0x11 used for AMP */
CONNECTION_PARAMETER_UPDATE_REQUEST = 0x12,
CONNECTION_PARAMETER_UPDATE_RESPONSE,
COMMAND_REJECT_LE = 0x14, // internal to BTstack
LE_CREDIT_BASED_CONNECTION_REQUEST,
LE_CREDIT_BASED_CONNECTION_RESPONSE,
LE_FLOW_CONTROL_CREDIT,
COMMAND_REJECT_LE = 0x1F // internal to BTstack
} L2CAP_SIGNALING_COMMANDS;
uint16_t l2cap_create_signaling_classic(uint8_t * acl_buffer,hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, va_list argptr);