* Function L2CA_ConfigReq * Description Higher layers call this function to send configuration. * Note: The FCR options of p_cfg are not used. * Returns TRUE if configuration sent, else FALSE
* Function L2CA_ConfigRsp * Description Higher layers call this function to send a configuration * response. * Returns TRUE if configuration response sent, else FALSE
* Function l2cu_send_peer_config_rsp * Description Build and send an L2CAP "configuration response" message * to the peer. * Returns void
* Function l2cu_send_peer_config_req * Description Build and send an L2CAP "configuration request" message * to the peer. * Returns void
* Function l2cu_process_our_cfg_req * Description This function is called when we send a "config request" * message. It extracts the configuration of interest and saves * it in the CCB. * Returns void
* 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
BLE_INCLUDED == TRUE * Function l2cu_process_peer_cfg_req * Description This function is called when the peer sends us a "config request" * message. It extracts the configuration of interest and saves * it in the CCB. * Note: Negotiation of the FCR channel type is handled internally, * all others are passed to the upper layer. * Returns UINT8 - L2CAP_PEER_CFG_OK if passed to upper layer, * L2CAP_PEER_CFG_UNACCEPTABLE if automatically responded to * because parameters are unnacceptable from a specification * point of view. * L2CAP_PEER_CFG_DISCONNECT if no compatible channel modes * between the two devices, and shall be closed.
* Function rfc_mx_conf_ind * Description This function handles L2CA_ConfigInd message from the * L2CAP. Send the L2CA_ConfigRsp message.
* Function l2c_fcr_adj_our_req_options * Description Validates and sets up the FCR options passed in from * L2CA_ConfigReq based on remote device's features. * Returns TRUE if no errors, Otherwise FALSE
* Function l2c_fcr_adj_our_rsp_options * Description Overrides any neccesary FCR options passed in from * L2CA_ConfigRsp based on our FCR options. * Only makes adjustments if channel is in ERTM mode. * Returns None
* Function l2c_fcr_renegotiate_chan * Description Called upon unsuccessful peer response to config request. * If the error is because of the channel mode, it will try * to resend using another supported optional channel. * Returns TRUE if resent configuration, False if channel matches or * cannot match.
* Function l2c_fcr_process_peer_cfg_req * Description This function is called to process the FCR options passed * in the peer's configuration request. * Returns UINT8 - L2CAP_PEER_CFG_OK, L2CAP_PEER_CFG_UNACCEPTABLE, * or L2CAP_PEER_CFG_DISCONNECT.
* Function l2cu_process_peer_cfg_rsp * Description This function is called when the peer sends us a "config response" * message. It extracts the configuration of interest and saves * it in the CCB. * Returns void
* Function l2cu_process_our_cfg_rsp * Description This function is called when we send the peer a "config response" * message. It extracts the configuration of interest and saves * it in the CCB. * Returns void
* Function sdp_config_cfm * Description This function processes the L2CAP configuration confirmation * event. * Returns void
* Function sdp_config_ind * Description This function processes the L2CAP configuration indication * event. * Returns void
* Function avct_l2c_config_cfm_cback * Description This is the L2CAP config confirm callback function. * Returns void
* Function avct_l2c_config_ind_cback * Description This is the L2CAP config indication callback function. * Returns void
* Function avdt_l2c_config_cfm_cback * Description This is the L2CAP config confirm callback function. * Returns void
* Function avdt_l2c_config_ind_cback * Description This is the L2CAP config indication callback function. * Returns void
Function hidd_l2cif_config_cfm Description Handles incoming L2CAP configuration response Returns void
Function hidd_l2cif_config_ind Description Handles incoming L2CAP configuration request Returns void
* 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 gap_config_ind * Description This function processes the L2CAP configuration indication * event. * Returns void
* Function gap_config_cfm * Description This function processes the L2CAP configuration confirmation * event. * Returns void
* Function RFCOMM_ConfigInd * Description This is a callback function called by L2CAP when * L2CA_ConfigInd received. Save parameters in the control * block and dispatch event to the FSM.
* Function RFCOMM_ConfigCnf * Description This is a callback function called by L2CAP when * L2CA_ConfigCnf received. Save L2CAP handle and dispatch * event to the FSM.
* Function rfc_mx_conf_cnf * Description This function handles L2CA_ConfigCnf message from the * L2CAP. If result is not success tell upper layer that * start has not been accepted. If initiator send SABME * on DLCI 0. T1 is still running.
* Function hidh_l2cif_config_ind * Description This function processes the L2CAP configuration indication * event. * Returns void
* Function hidh_l2cif_config_cfm * Description This function processes the L2CAP configuration confirmation * event. * Returns void
* Function GAP_ConnReconfig * Description Applications can call this function to reconfigure the connection. * Returns BT_PASS - config process started * GAP_ERR_BAD_HANDLE - invalid handle
* Function L2CA_GetCurrentConfig * Description This function returns configurations of L2CAP channel * pp_our_cfg : pointer of our saved configuration options * p_our_cfg_bits : valid config in bitmap * pp_peer_cfg: pointer of peer's saved configuration options * p_peer_cfg_bits : valid config in bitmap * Returns TRUE if successful
* Function obex_tl_l2cap_config_cfm * Description This is a callback function called by L2CAP when * L2CA_ConfigCnf received.
* Function obex_tl_l2cap_config_ind * Description This is a callback function called by L2CAP when * L2CA_ConfigInd received.
* 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.