Data Types for Logical Link Control and Adaptation Layer Protocol (L2CAP).
| #define L2C_INVALID_PSM |
( |
|
psm | ) |
(((psm) & 0x0101) != 0x0001) |
Validity check for PSM. PSM values must be odd. Also, all PSM values must be assigned such that the least significant bit of the most sigificant octet equals zero.
| #define L2CAP_BLE_COC_SDU_OFFSET 4 |
to provide upper layer some minimal offset possibly required to process incoming packets
| #define L2CAP_BLE_CONN_MIN_OFFSET 9 |
HCI type(1), len(2), handle(2), L2CAP len(2) and CID(2)
| #define L2CAP_BROADCAST_MIN_OFFSET 11 |
Minimum offset for broadcast needs another two bytes for the PSM
| #define L2CAP_CHNL_DATA_RATE_HIGH 3 |
Values for Tx/Rx data rate parameter to wiced_bt_l2cap_set_chnl_data_rate
| #define L2CAP_CHNL_PRIORITY_HIGH 0 |
Values for priority parameter to wiced_bt_l2cap_set_tx_priority
| #define L2CAP_DATAWRITE_FAILED FALSE |
| #define L2CAP_DEFAULT_BLE_CB_POOL_ID 0xFF |
Use the default HCI ACL buffer pool
| #define L2CAP_DIRECTION_DATA_SINK 2 |
Set ACL priority direction as sink
| #define L2CAP_DIRECTION_DATA_SOURCE 1 |
Set ACL priority direction as source
| #define L2CAP_DIRECTION_IGNORE 0 |
Values for direction parameter to wiced_bt_l2cap_set_acl_priority Set ACL priority direction as ignore
| #define L2CAP_FCR_CHAN_OPT_BASIC (1 << L2CAP_FCR_BASIC_MODE) |
| #define L2CAP_FLUSH_CHANNELS_ALL 0xffff |
Used in wiced_bt_l2cap_flush_channel num_to_flush definitions
| #define L2CAP_FLUSHABLE_MASK 0x0003 |
| #define L2CAP_MINIMUM_OFFSET 13 |
plus control(2), SDU length(2)
| #define L2CAP_PING_RESULT_NO_LINK 1 |
| #define L2CAP_PING_RESULT_NO_RESPONSE 2 |
Remote L2CAP did not reply
| #define L2CAP_PING_RESULT_OK 0 |
Ping result codes Ping reply received OK
| #define L2CAP_PRIORITY_NORMAL 0 |
Values for priority parameter to wiced_bt_l2cap_set_acl_priority
| #define L2CAP_ROLE_ALLOW_SWITCH 0x80 |
set this bit to allow switch at create conn
| #define L2CAP_ROLE_DISALLOW_SWITCH 0x40 |
set this bit to disallow switch at create conn
| #define L2CAP_ROLE_SLAVE HCI_ROLE_SLAVE |
Definition used for wiced_bt_l2cap_set_desire_role
| #define MINIMIUM_DYNAMIC_LE_PSM 0x0080 |
Validity check for LE_PSM. Fixed LE_PSMs are in the range 0x0001 - 0x007F. Dynamic LE_PSM are in the range 0x0080 - 0x00FF. The values 0x0000 and 0x0100 - 0xFFFF are reserved.