TI BLE5-Stack API Documentation  9.11.01
Macros
L2CAP Channel Terminated Event Reason Values

Macros

#define L2CAP_TERM_BY_PEER_PSM   0x0002
 Channel terminated by peer PSM. More...
 
#define L2CAP_TERM_BY_PSM   0x0001
 Channel terminated by local PSM. More...
 
#define L2CAP_TERM_LINK_DOWN   0x0000
 Physical link gone down. More...
 
#define L2CAP_TERM_MAX_CREDIT_EXCEED   0x0003
 Credit count exceeded 65535. More...
 
#define L2CAP_TERM_MEM_ALLOC_ERROR   0x0009
 Memory allocation error occurred. More...
 
#define L2CAP_TERM_PSM_MTU_EXCEED   0x0005
 Total length of payload received exceeded local PSM's MTU. More...
 
#define L2CAP_TERM_RX_ERROR   0x0007
 LE-frame was received with error. More...
 
#define L2CAP_TERM_RX_PKT_NO_CREDIT   0x0006
 LE-frame was received from peer device that has a credit of count zero. More...
 
#define L2CAP_TERM_SDU_LEN_EXCEED   0x0004
 Total length of payload received exceeded SDU length specified in first LE-frame of SDU. More...
 
#define L2CAP_TERM_TX_ERROR   0x0008
 Error happened while trying to send LE-frame. More...
 

Detailed Description

Macro Definition Documentation

§ L2CAP_TERM_BY_PEER_PSM

#define L2CAP_TERM_BY_PEER_PSM   0x0002

Channel terminated by peer PSM.

§ L2CAP_TERM_BY_PSM

#define L2CAP_TERM_BY_PSM   0x0001

Channel terminated by local PSM.

§ L2CAP_TERM_LINK_DOWN

#define L2CAP_TERM_LINK_DOWN   0x0000

Physical link gone down.

§ L2CAP_TERM_MAX_CREDIT_EXCEED

#define L2CAP_TERM_MAX_CREDIT_EXCEED   0x0003

Credit count exceeded 65535.

§ L2CAP_TERM_MEM_ALLOC_ERROR

#define L2CAP_TERM_MEM_ALLOC_ERROR   0x0009

Memory allocation error occurred.

§ L2CAP_TERM_PSM_MTU_EXCEED

#define L2CAP_TERM_PSM_MTU_EXCEED   0x0005

Total length of payload received exceeded local PSM's MTU.

§ L2CAP_TERM_RX_ERROR

#define L2CAP_TERM_RX_ERROR   0x0007

LE-frame was received with error.

§ L2CAP_TERM_RX_PKT_NO_CREDIT

#define L2CAP_TERM_RX_PKT_NO_CREDIT   0x0006

LE-frame was received from peer device that has a credit of count zero.

§ L2CAP_TERM_SDU_LEN_EXCEED

#define L2CAP_TERM_SDU_LEN_EXCEED   0x0004

Total length of payload received exceeded SDU length specified in first LE-frame of SDU.

§ L2CAP_TERM_TX_ERROR

#define L2CAP_TERM_TX_ERROR   0x0008

Error happened while trying to send LE-frame.

© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale