* Function L2CA_ErtmConnectRsp * Description Higher layers call this function to accept an incoming * L2CAP connection, for which they had gotten an connect * indication callback. * Returns TRUE for success, FALSE for failure
* Function L2CA_ErtmConnectReq * Description Higher layers call this function to create an L2CAP connection. * Note that the connection is not established at this time, but * connection establishment gets started. The callback function * will be invoked when connection establishes or fails. * Parameters: PSM: L2CAP PSM for the connection * BD address of the peer * Enhaced retransmission mode configurations * Returns the CID of the connection, or 0 if it failed to start
* External Function Declarations Functions for L2CAP connection interface ** * Function GAP_ConnOpen * Description This function is called to open a generic L2CAP connection. * Returns handle of the connection if successful, else GAP_INVALID_HANDLE
* Function BTA_JvL2capConnect * Description Initiate a connection as a L2CAP client to the given BD * Address. * When the connection is initiated or failed to initiate, * tBTA_JV_L2CAP_CBACK is called with BTA_JV_L2CAP_CL_INIT_EVT * When the connection is established or failed, * tBTA_JV_L2CAP_CBACK is called with BTA_JV_L2CAP_OPEN_EVT * Returns BTA_JV_SUCCESS, if the request is being processed. * BTA_JV_FAILURE, otherwise.
* Function BTA_JvL2capStartServer * Description This function starts an L2CAP server and listens for an L2CAP * connection from a remote Bluetooth device. When the server * is started successfully, tBTA_JV_L2CAP_CBACK is called with * BTA_JV_L2CAP_START_EVT. When the connection is established, * tBTA_JV_L2CAP_CBACK is called with BTA_JV_L2CAP_OPEN_EVT. * Returns BTA_JV_SUCCESS, if the request is being processed. * BTA_JV_FAILURE, otherwise.
* Function BTA_JvL2capConnectLE * Description Initiate an LE connection as a L2CAP client to the given BD * Address. * When the connection is initiated or failed to initiate, * tBTA_JV_L2CAP_CBACK is called with BTA_JV_L2CAP_CL_INIT_EVT * When the connection is established or failed, * tBTA_JV_L2CAP_CBACK is called with BTA_JV_L2CAP_OPEN_EVT * Returns BTA_JV_SUCCESS, if the request is being processed. * BTA_JV_FAILURE, otherwise.
* Function BTA_JvL2capStartServerLE * Description This function starts an LE L2CAP server and listens for an L2CAP * connection from a remote Bluetooth device. When the server * is started successfully, tBTA_JV_L2CAP_CBACK is called with * BTA_JV_L2CAP_START_EVT. When the connection is established, * tBTA_JV_L2CAP_CBACK is called with BTA_JV_L2CAP_OPEN_EVT. * Returns BTA_JV_SUCCESS, if the request is being processed. * BTA_JV_FAILURE, otherwise.