AVRC_Open() function
* Function AVRC_Open * Description This function is called to open a connection to AVCTP. * The connection can be either an initiator or acceptor, as * determined by the p_ccb->stream parameter. * The connection can be a target, a controller or for both role, * as determined by the p_ccb->control parameter. * By definition, a target connection is an acceptor connection * that waits for an incoming AVCTP connection from the peer. * The connection remains available to the application until * the application closes it by calling AVRC_Close(). The * application does not need to reopen the connection after an * AVRC_CLOSE_IND_EVT is received. * Input Parameters: * p_ccb->company_id: Company Identifier. * p_ccb->p_ctrl_cback: Pointer to control callback function. * p_ccb->p_msg_cback: Pointer to message callback function. * p_ccb->conn: AVCTP connection role. This is set to * AVCTP_INT for initiator connections and AVCTP_ACP * for acceptor connections. * p_ccb->control: Control role. This is set to * AVRC_CT_TARGET for target connections, AVRC_CT_CONTROL * for control connections or (AVRC_CT_TARGET|AVRC_CT_CONTROL) * for connections that support both roles. * peer_addr: BD address of peer device. This value is * only used for initiator connections; for acceptor * connections it can be set to NULL. * Output Parameters: * p_handle: Pointer to handle. This parameter is only * valid if AVRC_SUCCESS is returned. * Returns AVRC_SUCCESS if successful. * AVRC_NO_RESOURCES if there are not enough resources to open * the connection.
AVRC_Open() is called by 1 function and calls 3 functions:
![]()
AVRC_Open()
AVRC_Open() reads 12 variables and writes 5 variables:
![]()
AVRC_Open()