TI BLE Stack API Documentation  2.03.06
Functions
L2CAP Utility API Functions

Functions

uint16 L2CAP_BuildConnectReq (uint8 *pBuf, uint8 *pData)
 Build Connection Request. More...
 
bStatus_t L2CAP_ParseConnectReq (l2capSignalCmd_t *pCmd, uint8 *pData, uint16 len)
 Parse Connection Request message. More...
 
bStatus_t L2CAP_ParseFlowCtrlCredit (l2capSignalCmd_t *pCmd, uint8 *pData, uint16 len)
 Parse Flow Control Credit message. More...
 
uint16 L2CAP_BuildCmdReject (uint8 *pBuf, uint8 *pCmd)
 Build Command Reject. More...
 
bStatus_t L2CAP_ParseInfoReq (l2capSignalCmd_t *pCmd, uint8 *pData, uint16 len)
 Parse Information Request message. More...
 
bStatus_t L2CAP_ParseParamUpdateReq (l2capSignalCmd_t *pCmd, uint8 *pData, uint16 len)
 Parse Connection Parameter Update Request. More...
 
uint16 L2CAP_BuildParamUpdateRsp (uint8 *pBuf, uint8 *pData)
 Build Connection Parameter Update Response. More...
 

Detailed Description

Function Documentation

§ L2CAP_BuildCmdReject()

uint16 L2CAP_BuildCmdReject ( uint8 *  pBuf,
uint8 *  pCmd 
)

Build Command Reject.

Parameters
pBuf- pointer to buffer to hold command data
pCmd- pointer to command data
Returns
length of the command data

§ L2CAP_BuildConnectReq()

uint16 L2CAP_BuildConnectReq ( uint8 *  pBuf,
uint8 *  pData 
)

Build Connection Request.

Parameters
pBuf- pointer to buffer to hold command data
pData- pointer to command data
Returns
length of the command data

§ L2CAP_BuildParamUpdateRsp()

uint16 L2CAP_BuildParamUpdateRsp ( uint8 *  pBuf,
uint8 *  pData 
)

Build Connection Parameter Update Response.

Parameters
pBuf- pointer to buffer to hold command data
pData- pointer to command data
Returns
length of the command data

§ L2CAP_ParseConnectReq()

bStatus_t L2CAP_ParseConnectReq ( l2capSignalCmd_t pCmd,
uint8 *  pData,
uint16  len 
)

Parse Connection Request message.

Parameters
pCmd- pointer to command data to be built
pData- pointer to incoming command data to be parsed
len- length of incoming command data
Returns
SUCCESS: Command was parsed successfully.
FAILURE: Command length is invalid.

§ L2CAP_ParseFlowCtrlCredit()

bStatus_t L2CAP_ParseFlowCtrlCredit ( l2capSignalCmd_t pCmd,
uint8 *  pData,
uint16  len 
)

Parse Flow Control Credit message.

Parameters
pCmd- pointer to command data to be built
pData- pointer to incoming command data to be parsed
len- length of incoming command data
Returns
SUCCESS: Command was parsed successfully.
FAILURE: Command length is invalid.

§ L2CAP_ParseInfoReq()

bStatus_t L2CAP_ParseInfoReq ( l2capSignalCmd_t pCmd,
uint8 *  pData,
uint16  len 
)

Parse Information Request message.

Parameters
pCmd- pointer to command data to be built
pData- pointer to incoming command data to be parsed
len- length of incoming command data
Returns
SUCCESS: Command was parsed successfully.
FAILURE: Command length is invalid.

§ L2CAP_ParseParamUpdateReq()

bStatus_t L2CAP_ParseParamUpdateReq ( l2capSignalCmd_t pCmd,
uint8 *  pData,
uint16  len 
)

Parse Connection Parameter Update Request.

Parameters
pCmd- pointer to command data to be built
pData- pointer to incoming command data to be parsed
len- length of incoming command data
Returns
SUCCESS: Command was parsed successfully.
FAILURE: Command length is invalid.