Esempio n. 1
0
TI_STATUS txnQ_ConnectBus (TI_HANDLE  hTxnQ,
                           TBusDrvCfg *pBusDrvCfg,
                           TTxnDoneCb fConnectCb,
                           TI_HANDLE  hConnectCb,
                           TI_UINT32  *pRxDmaBufLen,
                           TI_UINT32  *pTxDmaBufLen)
{
	TTxnQObj *pTxnQ = (TTxnQObj*) hTxnQ;

	pTxnQ->fConnectCb = fConnectCb;
	pTxnQ->hConnectCb = hConnectCb;

	return busDrv_ConnectBus (pTxnQ->hBusDrv, pBusDrvCfg, txnQ_TxnDoneCb, hTxnQ, txnQ_ConnectCB, pRxDmaBufLen, pTxDmaBufLen);
}
Esempio n. 2
0
TI_STATUS txnQ_ConnectBus (TI_HANDLE  hTxnQ, 
                           TBusDrvCfg *pBusDrvCfg, 
                           TTxnDoneCb fConnectCb, 
                           TI_HANDLE  hConnectCb, 
                           TI_UINT32  *pRxDmaBufLen,
                           TI_UINT32  *pTxDmaBufLen)
{
    TTxnQObj *pTxnQ = (TTxnQObj*) hTxnQ;

    TRACE0(pTxnQ->hReport, REPORT_SEVERITY_INFORMATION, "txnQ_ConnectBus()\n");

    pTxnQ->fConnectCb = fConnectCb;
    pTxnQ->hConnectCb = hConnectCb;

    return busDrv_ConnectBus (pTxnQ->hBusDrv, pBusDrvCfg, txnQ_TxnDoneCb, hTxnQ, txnQ_ConnectCB, pRxDmaBufLen, pTxDmaBufLen);
}
/** 
 * \fn     txnQ_ConnectBus
 * \brief  Configure bus driver
 * 
 * Called by upper layer initialization function.
 * Configure the bus driver with its connection configuration (such as baud-rate, bus width etc) 
 *     and establish the physical connection. Done once (and not per functional driver startup). 
 * 
 * \note   
 * \param  hTxnQ      - The module's object
 * \param  pBusDrvCfg - A union used for per-bus specific configuration. 
 * \return RES_OK / RES_ERROR
 * \sa     
 */ 
EMcpfRes   txnQ_ConnectBus (handle_t 				hTxnQ, 
							 const TBusDrvCfg 		*pBusDrvCfg,
							 const TTxnDoneCb 		fConnectCb,
							 const handle_t 		hConnectCb, 
							 const TI_BusDvrRxIndCb fRxIndCb,
							 const handle_t 		hRxIndHandle, 
							 const TI_TxnEventHandlerCb fEventHandlerCb,
							 const handle_t 		hEventHandle,
							 const handle_t 		hIfSlpMng)
{
    TTxnQObj *pTxnQ = (TTxnQObj*) hTxnQ;

    pTxnQ->fConnectCb = fConnectCb;
    pTxnQ->hConnectCb = hConnectCb;

    return busDrv_ConnectBus (pTxnQ->hBusDrv, 
							  pBusDrvCfg, 
							  txnQ_TxnDoneCb, 
							  hTxnQ, 
							  txnQ_ConnectCB,
							  fRxIndCb, hRxIndHandle,
							  fEventHandlerCb, hEventHandle,
							  hIfSlpMng);
}