TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Modules | Macros
L2CAP Constants

Modules

 L2CAP Channel Identifiers
 
 L2CAP Channel States
 
 L2CAP Channel Terminated Event Reason Values
 
 L2CAP Command Reject Reason Codes
 
 L2CAP Connection Parameter Update Response Result Values
 
 L2CAP Connection Response Result Values
 
 L2CAP Information Request/Response Info Types
 
 L2CAP Proprietary Event Codes (type of events)
 
 L2CAP Signaling Codes (type of commands)
 
 LE Protocol/Service Multiplexer values
 

Macros

#define L2CAP_EXTENDED_FEATURES_SIZE   4
 Length of Extended Features bit mask.
 
#define L2CAP_FIXED_CHANNELS   0x00000080
 Fixed channels are supported.
 
#define L2CAP_FIXED_CHANNELS_ATT   0x10
 Fixed Channel ATT is supported.
 
#define L2CAP_FIXED_CHANNELS_SIG   0x20
 Fixed Channel L2CAP Signaling is supported.
 
#define L2CAP_FIXED_CHANNELS_SIZE   8
 Length of Fixed Channels bit mask.
 
#define L2CAP_FIXED_CHANNELS_SMP   0x40
 Fixed Channel SMP is supported.
 
#define L2CAP_HDR_SIZE   4
 Basic L2CAP header: Length (2 bytes) + Channel ID (2 bytes)
 
#define L2CAP_INFO_NOT_SUPPORTED   0x0001
 L2CAP Not supported.
 
#define L2CAP_INFO_SUCCESS   0x0000
 L2CAP Success.
 
#define L2CAP_LEN_FIELD_SIZE   2
 SDU Length field size.
 
#define L2CAP_MTU_SIZE   23
 Minimum supported information payload for the Basic information frame (B-frame)
 
#define L2CAP_NUM_CO_CHANNELS_DEFAULT   3
 Default maximum number of L2CAP Connection Oriented Channels.
 
#define L2CAP_NUM_PSM_DEFAULT   3
 Default maximum number of L2CAP Protocol/Service Multiplexers (PSM)
 
#define L2CAP_PDU_SIZE   ( L2CAP_HDR_SIZE + L2CAP_MTU_SIZE )
 L2CAP PDU Size. More...
 
#define L2CAP_RTX_TIMEOUT   30
 L2CAP Response Timeout Expired (RTX) More...
 
#define L2CAP_SDU_SIZE   512
 Maximum SDU size (PSM's MTU) that can be received on a Connection Oriented Channel.
 
#define L2CAP_SIG_MTU_SIZE   23
 Minimum supported information payload for the Control frame (C-frame)
 

Detailed Description

Macro Definition Documentation

§ L2CAP_PDU_SIZE

#define L2CAP_PDU_SIZE   ( L2CAP_HDR_SIZE + L2CAP_MTU_SIZE )

L2CAP PDU Size.

Minimum size of PDU received from lower layer protocol (incoming packet), or delivered to lower layer protocol (outgoing packet).

§ L2CAP_RTX_TIMEOUT

#define L2CAP_RTX_TIMEOUT   30

L2CAP Response Timeout Expired (RTX)

The RTX value is for Signaling commands (in seconds). The RTX timer is used for response timeout or to terminate a dynamic channel when the remote device is unresponsive to signaling requests. Its value may range from 1 to 60 seconds.

Copyright 2017, Texas Instruments Incorporated