|
TI BLE Stack API Documentation
2.03.08
|
Functions | |
| bStatus_t | L2CAP_RegisterApp (uint8 taskId, uint16 CID) |
| Register a protocol/application with an L2CAP fixed channel. More... | |
| void | L2CAP_RegisterFlowCtrlTask (uint8 taskId) |
| Register task to recevie L2CAP Flow Control events when there are data buffers available for sending messages. More... | |
| bStatus_t | L2CAP_SendData (uint16 connHandle, l2capPacket_t *pPkt) |
| Send data packet over an L2CAP fixed channel established over a physical connection. More... | |
| bStatus_t | L2CAP_RegisterPsm (l2capPsm_t *pPsm) |
| Register a Protocol/Service Multiplexer (PSM) with L2CAP. More... | |
| bStatus_t | L2CAP_DeregisterPsm (uint8 taskId, uint16 psm) |
| Deregister a Protocol/Service Multiplexer with L2CAP. More... | |
| bStatus_t | L2CAP_PsmInfo (uint16 psm, l2capPsmInfo_t *pInfo) |
| Get information about a given registered PSM. More... | |
| bStatus_t | L2CAP_PsmChannels (uint16 psm, uint8 numCIDs, uint16 *pCIDs) |
| Get all active channels for a given registered PSM. More... | |
| bStatus_t | L2CAP_ChannelInfo (uint16 CID, l2capChannelInfo_t *pInfo) |
| Get information about a given active Connection Oriented Channel. More... | |
| bStatus_t | L2CAP_ConnectReq (uint16 connHandle, uint16 psm, uint16 peerPsm) |
| Send Connection Request. More... | |
| bStatus_t | L2CAP_ConnectRsp (uint16 connHandle, uint8 id, uint16 result) |
| Send Connection Response. More... | |
| bStatus_t | L2CAP_DisconnectReq (uint16 CID) |
| Send Disconnection Request. More... | |
| bStatus_t | L2CAP_FlowCtrlCredit (uint16 CID, uint16 peerCredits) |
| Send Flow Control Credit. More... | |
| bStatus_t | L2CAP_SendSDU (l2capPacket_t *pPkt) |
| Send data packet over an L2CAP connection oriented channel established over a physical connection. More... | |
| bStatus_t | L2CAP_CmdReject (uint16 connHandle, uint8 id, l2capCmdReject_t *pCmdReject) |
| Send Command Reject. More... | |
| bStatus_t | L2CAP_InfoReq (uint16 connHandle, l2capInfoReq_t *pInfoReq, uint8 taskId) |
| Send Information Request. More... | |
| bStatus_t | L2CAP_ConnParamUpdateReq (uint16 connHandle, l2capParamUpdateReq_t *pUpdateReq, uint8 taskId) |
| Send Connection Parameter Update Request. More... | |
| bStatus_t | L2CAP_ConnParamUpdateRsp (uint16 connHandle, uint8 id, l2capParamUpdateRsp_t *pUpdateRsp) |
| Send Connection Parameter Update Response. More... | |
| void | L2CAP_SetUserConfig (l2capUserCfg_t *pUserCfg) |
| Set the user configurable variables for the L2CAP layer. More... | |
| void | L2CAP_SetBufSize (uint16 dataPktLen, uint8 numDataPkts) |
| This API is used by the upper layer to set the maximum data packet size and the number of data packets allowed by the Controller. More... | |
| uint16 | L2CAP_GetMTU (void) |
| Get the maximum payload size that L2CAP is capable of receiving. More... | |
| void * | L2CAP_bm_alloc (uint16 size) |
| L2CAP implementation of the allocator functionality. More... | |
| void* L2CAP_bm_alloc | ( | uint16 | size | ) |
L2CAP implementation of the allocator functionality.
Note: This function should only be called by L2CAP and the upper layer protocol/application.
| size | - number of bytes to allocate from the heap. |
| bStatus_t L2CAP_ChannelInfo | ( | uint16 | CID, |
| l2capChannelInfo_t * | pInfo | ||
| ) |
Get information about a given active Connection Oriented Channel.
| CID | - local channel id. |
| pInfo | - structure to copy channel info into. |
| bStatus_t L2CAP_CmdReject | ( | uint16 | connHandle, |
| uint8 | id, | ||
| l2capCmdReject_t * | pCmdReject | ||
| ) |
Send Command Reject.
| connHandle | - connection to use |
| id | - identifier of the request packet being rejected |
| pCmdReject | - pointer to Command Reject to be sent |
| bStatus_t L2CAP_ConnectReq | ( | uint16 | connHandle, |
| uint16 | psm, | ||
| uint16 | peerPsm | ||
| ) |
Send Connection Request.
| connHandle | - connection to create channel on |
| psm | - local PSM |
| peerPsm | - peer PSM |
| bStatus_t L2CAP_ConnectRsp | ( | uint16 | connHandle, |
| uint8 | id, | ||
| uint16 | result | ||
| ) |
Send Connection Response.
| connHandle | - connection handle |
| id | - identifier received in connection request |
| result | - outcome of connection request: L2CAP Connection Response Result Values |
| bStatus_t L2CAP_ConnParamUpdateReq | ( | uint16 | connHandle, |
| l2capParamUpdateReq_t * | pUpdateReq, | ||
| uint8 | taskId | ||
| ) |
Send Connection Parameter Update Request.
| connHandle | - connection to use |
| pUpdateReq | - pointer to Update Request to be sent |
| taskId | - task to be notified about result |
| bStatus_t L2CAP_ConnParamUpdateRsp | ( | uint16 | connHandle, |
| uint8 | id, | ||
| l2capParamUpdateRsp_t * | pUpdateRsp | ||
| ) |
Send Connection Parameter Update Response.
| connHandle | - connection to use |
| id | - identifier received in request |
| pUpdateRsp | - pointer to Update Response to be sent |
| bStatus_t L2CAP_DeregisterPsm | ( | uint8 | taskId, |
| uint16 | psm | ||
| ) |
Deregister a Protocol/Service Multiplexer with L2CAP.
| taskId | - task PSM belongs to. |
| psm | - PSM to deregister. |
| bStatus_t L2CAP_DisconnectReq | ( | uint16 | CID | ) |
Send Disconnection Request.
| CID | - local CID to disconnect |
| bStatus_t L2CAP_FlowCtrlCredit | ( | uint16 | CID, |
| uint16 | peerCredits | ||
| ) |
Send Flow Control Credit.
| CID | - local CID |
| peerCredits | - number of credits to give to peer device |
| uint16 L2CAP_GetMTU | ( | void | ) |
Get the maximum payload size that L2CAP is capable of receiving.
| bStatus_t L2CAP_InfoReq | ( | uint16 | connHandle, |
| l2capInfoReq_t * | pInfoReq, | ||
| uint8 | taskId | ||
| ) |
Send Information Request.
| connHandle | - connection to use |
| pInfoReq | - pointer to Info Request to be sent |
| taskId | - task to be notified about result |
| bStatus_t L2CAP_PsmChannels | ( | uint16 | psm, |
| uint8 | numCIDs, | ||
| uint16 * | pCIDs | ||
| ) |
Get all active channels for a given registered PSM.
| psm | - PSM Id. |
| numCIDs | - number of CIDs can be copied. |
| pCIDs | - structure to copy CIDs into. |
| bStatus_t L2CAP_PsmInfo | ( | uint16 | psm, |
| l2capPsmInfo_t * | pInfo | ||
| ) |
Get information about a given registered PSM.
| psm | - PSM Id. |
| pInfo | - structure to copy PSM info into. |
| bStatus_t L2CAP_RegisterApp | ( | uint8 | taskId, |
| uint16 | CID | ||
| ) |
Register a protocol/application with an L2CAP fixed channel.
| taskId | - task to be registered with channel. |
| CID | - fixed channel ID. |
| void L2CAP_RegisterFlowCtrlTask | ( | uint8 | taskId | ) |
Register task to recevie L2CAP Flow Control events when there are data buffers available for sending messages.
taskId - Application's task ID.
| bStatus_t L2CAP_RegisterPsm | ( | l2capPsm_t * | pPsm | ) |
Register a Protocol/Service Multiplexer (PSM) with L2CAP.
| pPsm | - pointer to PSM structure. |
| bStatus_t L2CAP_SendData | ( | uint16 | connHandle, |
| l2capPacket_t * | pPkt | ||
| ) |
Send data packet over an L2CAP fixed channel established over a physical connection.
Note: Packet 'pPayload' must be allocated using L2CAP_bm_alloc().
| connHandle | - connection to be used. |
| pPkt | - pointer to packet to be sent. |
| bStatus_t L2CAP_SendSDU | ( | l2capPacket_t * | pPkt | ) |
Send data packet over an L2CAP connection oriented channel established over a physical connection.
Note: Packet 'pPayload' must be allocated using L2CAP_bm_alloc().
| pPkt | - pointer to packet to be sent. |
| void L2CAP_SetBufSize | ( | uint16 | dataPktLen, |
| uint8 | numDataPkts | ||
| ) |
This API is used by the upper layer to set the maximum data packet size and the number of data packets allowed by the Controller.
| dataPktLen | - data packet size |
| numDataPkts | - number of data packets |
| void L2CAP_SetUserConfig | ( | l2capUserCfg_t * | pUserCfg | ) |
Set the user configurable variables for the L2CAP layer.
Note: This function should be called BEFORE osal_init_system.
| pUserCfg | - pointer to user configuration |
1.8.12