TI CC254X函数库说明续(BLE L2CAP.h)

/初始化L2CAP层  
void L2CAP_Init( uint8 taskId );  
  
//L2CAP任务时间处理函数  
uint16 L2CAP_ProcessEvent( uint8 taskId, uint16 events );  
  
//为协议或程序注册一个L2CAP通道  
bStatus_t L2CAP_RegisterApp( uint8 taskId, uint16 CID );  
  
//发送L2CAP数据包  
bStatus_t L2CAP_SendData( uint16 connHandle, l2capPacket_t *pPkt );  
  
//发送拒绝命令  
bStatus_t L2CAP_CmdReject( uint16 connHandle, uint8 id, l2capCmdReject_t *pCmdReject );  
  
//建立拒绝命令  
uint16 L2CAP_BuildCmdReject( uint8 *pBuf, uint8 *pCmd );  
  
//发送L2CAP Echo请求  
bStatus_t L2CAP_EchoReq( uint16 connHandle, l2capEchoReq_t *pEchoReq, uint8 taskId );  
  
//发送L2CAP信息请求  
bStatus_t L2CAP_InfoReq( uint16 connHandle, l2capInfoReq_t *pInfoReq, uint8 taskId );  
  
//建立信息响应  
uint16 L2CAP_BuildInfoRsp( uint8 *pBuf, uint8 *pCmd );  
  
//解析信息请求  
bStatus_t L2CAP_ParseInfoReq( l2capSignalCmd_t *pCmd, uint8 *pData, uint16 len );  
  
//发送L2CAP连接参数更新请求  
bStatus_t L2CAP_ConnParamUpdateReq( uint16 connHandle, l2capParamUpdateReq_t *pUpdateReq, uint8 taskId );  
  
//解析连接参数更新请求  
bStatus_t L2CAP_ParseParamUpdateReq( l2capSignalCmd_t *pCmd, uint8 *pData, uint16 len );  
  
//发送连接参数更新响应  
bStatus_t L2CAP_ConnParamUpdateRsp( uint16 connHandle, uint8 id, l2capParamUpdateRsp_t *pUpdateRsp );  
  
//建立连接参数更新响应  
uint16 L2CAP_BuildParamUpdateRsp( uint8 *pBuf, uint8 *pData );  
  
//在L2CAP层分配内存  
void *L2CAP_bm_alloc( uint16 size );  

你可能感兴趣的:(BLE)