* Function port_find_mcb_dlci_port * Description Find port on the multiplexer channel based on DLCI. If * this port with DLCI not found try to use even DLCI. This * is for the case when client is establishing connection on * none-initiator MCB. * Returns Pointer to the PORT or NULL if not found
* Function rfc_send_dm * Description This function sends DM frame.
* Function rfc_mx_sm_execute * Description This function sends multiplexor events through the state * machine. * Returns void
* Function rfc_timer_start * Description Start RFC Timer
* Function rfc_send_ua * Description This function sends UA frame.
* Function rfc_send_buf_uih * Description This function sends UIH frame.
* Function PORT_CloseInd * Description This function is called from the RFCOMM layer when * multiplexer connection is released.
* Function rfc_timer_stop * Description Stop RFC Timer
* Function PORT_StartCnf * Description This function is called from the RFCOMM layer when * establishing of the multiplexer channel is completed. * Continue establishing of the connection for all ports that * are in the OPENING state
* Function rfc_save_lcid_mcb * Description This function returns MCB block supporting local cid
* Function rfc_check_send_cmd * Description This function is called to send an RFCOMM command message * or to handle the RFCOMM command message queue. * Returns void
* Function PORT_DlcEstablishCnf * Description This function is called from the RFCOMM layer when peer * acknowledges establish procedure (SABME/UA). Send reply * to the user and set state to OPENED if result was * successfull.
* Function PORT_FlowInd * Description This function is called from the RFCOMM layer on the flow * control signal change. Propagate change to the user.
* Function rfc_check_mcb_active * Description Check if there are any opened ports on the MCB if not * start MCB Inact timer. * Returns void
* Function rfc_send_rpn * Description This function sends Remote Port Negotiation Command
* Function rfc_release_multiplexer_channel * Description This function returns existing or new control block for * the BD_ADDR.
* Function rfc_send_disc * Description This function sends DISC frame.
* Function RFCOMM_ControlReq * Description This function is called by the port entity to send control * parameters to remote port emulation entity.
* Function PORT_DlcReleaseInd * Description This function is called from the RFCOMM layer when * DLC connection is released.
* Function rfc_send_sabme * Description This function sends SABME frame.
* Function rfc_send_msc * Description This function sends Modem Status Command Frame.
* Function RFCOMM_DlcEstablishRsp * Description This function is called by the port emulation entity * acks Establish Indication.
* Function RFCOMM_FlowReq * Description This function is called by the port entity when flow * control state has changed. Enable flag passed shows if * port can accept more data.
* Function PORT_PortNegCnf * Description This function is called from the RFCOMM layer to change * state for the port. Propagate change to the user.
* Function rfc_timer_free * Description Stop and free RFC Timer
* Function rfc_send_pn * Description This function sends DLC Parameters Negotiation Frame.
* Function rfc_send_test * Description This function sends Test frame.
* Function rfc_send_rls * Description This function sends Remote Line Status Command Frame.
* Function RFCOMM_StartRsp * Description This function handles Start Response from the upper layer. * Save upper layer handle and result of the Start Indication * in the control block and dispatch event to the FSM.
* Function RFCOMM_DataReq * Description This function is called by the user app to send data buffer
* Function RFCOMM_DlcReleaseReq * Description This function is called by the PORT unit to close DLC
* Function RFCOMM_ParNegReq * Description This function is called by the user app to start * DLC parameter negotiation. Port emulation can send this * request before actually establishing the DLC. In this * case the function will allocate RFCOMM connection control * block.
* Function RFCOMM_PortNegReq * Description This function is called by the user app to start * Remote Port parameter negotiation. Port emulation can * send this request before actually establishing the DLC. * In this case the function will allocate RFCOMM connection * control block.
* Function RFCOMM_PortNegRsp * Description This function is called by the user app to acknowledge * Port parameters negotiation.
* Function RFCOMM_LineStatusReq * Description This function is called by the port entity when line * status should be delivered to the peer.
* Function Port_TimeOutCloseMux * Description This function is called when RFCOMM timesout on a command * as a result multiplexer connection is closed.
* Function PORT_PortNegInd * Description This function is called from the RFCOMM layer when peer * device wants to set parameters of the port. As per the spec * this message has to be sent before the first data packet * and can be sent before establish. The block should be * allocated before meaning that application already made open.
* Function rfc_mx_conf_ind * Description This function handles L2CA_ConfigInd message from the * L2CAP. Send the L2CA_ConfigRsp message.
* Function rfc_mx_send_config_req * Description This function handles L2CA_ConnectInd message from the * L2CAP. Accept connection.
* Function rfc_process_fcoff * Description This function handles FCOFF frame. The peer entity is unable * to receive new information
* Function rfc_process_l2cap_congestion * Description This function handles L2CAP congestion messages
* Function RFCOMM_StartReq * Description This function handles Start Request from the upper layer. * If RFCOMM multiplexer channel can not be allocated * send start not accepted confirmation. Otherwise dispatch * start event to the state machine.
* Function RFCOMM_DlcEstablishReq * Description This function is called by the user app to establish * connection with the specific dlci on a specific bd device. * It will allocate RFCOMM connection control block if not * allocated before and dispatch open event to the state * machine.
* Function RFCOMM_ParNegRsp * Description This function is called by the user app to acknowledge * DLC parameter negotiation.
* Function rfc_send_fcon * Description This function sends Flow Control On Command.
* Function rfc_send_fcoff * Description This function sends Flow Control Off Command.
* Function rfc_send_credit * Description This function sends a flow control credit in UIH frame.
* Function rfc_process_mx_message * Description This function processes UIH frames received on the * multiplexer control channel.
* Function rfc_parse_data * Description This function processes data packet received from L2CAP
* Function PORT_StartInd * Description This function is called from the RFCOMM layer when * some peer device wants to establish a multiplexer * connection. Check if there are any ports open with this * or not assigned multiplexer.
* Function PORT_DlcEstablishInd * Description This function is called from the RFCOMM layer when peer * device wants to establish a new DLC. If this is not the * first message in the establishment procedure port_handle * has a handle to the port control block otherwise the control * block should be found based on the muliplexer channel and * dlci. The block should be allocated allocated before * meaning that application already made open.
* Function PORT_ParNegInd * Description This function is called from the RFCOMM layer to change * DLCI parameters (currently only MTU is negotiated). * If can not find the port do not accept the request. * Otherwise save the MTU size supported by the peer.
* Function PORT_ParNegCnf * Description This function is called from the RFCOMM layer to change * DLCI parameters (currently only MTU is negotiated). * Save the MTU size supported by the peer. * If the confirmation is received during the port opening * procedure send EstablishRequest to continue.
* Function PORT_ControlInd * Description This function is called from the RFCOMM layer on the modem * signal change. Propagate change to the user.
* Function PORT_ControlCnf * Description This function is called from the RFCOMM layer when * peer acknowleges change of the modem signals.
* Function PORT_LineStatusInd * Description This function is called from the RFCOMM layer when * peer indicates change in the line status
* Function rfc_process_pn * Description This function handles DLC parameter negotiation frame. * Record MTU and pass indication to the upper layer.
* Function rfc_process_msc * Description This function handles Modem Status Command. * Pass command to the user.
* Function rfc_process_rpn * Description This function handles Remote DLC parameter negotiation * command/response. Pass command to the user.
* Function rfc_process_rls * Description This function handles Remote Line Status command. * Pass command to the user.
* Function rfc_process_nsc * Description This function handles None Supported Command frame.
* Function rfc_process_test * Description This function handles Test frame. If this is a command * reply to it. Otherwise pass response to the user.
* Function rfc_process_fcon * Description This function handles FCON frame. The peer entity is able * to receive new information
* 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 rfc_mx_sm_state_idle * Description This function handles events when the multiplexer is in * IDLE state. This state exists when connection is being * initially established. * Returns void
* Function rfc_mx_sm_state_wait_conn_cnf * Description This function handles events when the multiplexer is * waiting for Connection Confirm from L2CAP. * Returns void
* Function rfc_mx_sm_sabme_wait_ua * Description This function handles events when the multiplexer sent * SABME and is waiting for UA reply. * Returns void
* Function rfc_mx_sm_state_configure * Description This function handles events when the multiplexer in the * configuration state. * Returns void
* Function rfc_mx_sm_state_disc_wait_ua * Description This function handles events when the multiplexer sent * DISC and is waiting for UA reply. * Returns void
* Function rfc_mx_sm_state_wait_sabme * Description This function handles events when the multiplexer is * waiting for SABME on the acceptor side after configuration * Returns void
* Function rfc_mx_sm_state_connected * Description This function handles events when the multiplexer is * in the CONNECTED state * Returns void
* Function rfc_send_nsc * Description This function sends Non Supported Command Response.