Exemple #1
0
/*
 * \brief	Cb to cmdMbox_ConfigHw
 *
 * \param  hCmdMbox  - Handle to CmdMbox
 * \return TI_OK
 *
 * \par Description
 *
 * \sa
 */
static void cmdMbox_ConfigHwCb (TI_HANDLE hCmdMbox, TTxnStruct *pTxn)
{
	TCmdMbox   *pCmdMbox = (TCmdMbox *)hCmdMbox;

	pCmdMbox->uFwAddr = pCmdMbox->aRegTxn[1].uRegister;

	/* Call back the original State Machine */
	pCmdMbox->fCb(pCmdMbox->hCb, TI_OK);
}
Exemple #2
0
/*
 * \brief	Handle cmdMbox timeout.
 *
 * \param  hCmdMbox  - Handle to CmdMbox
 * \return TI_OK
 *
 * \par Description
 * Call fErrorCb() to handle the error.
 *
 * \sa cmdMbox_SendCommand
 */
static void cmdMbox_TimeOut (TI_HANDLE hCmdMbox, TI_BOOL bTwdInitOccured)
{
	TCmdMbox   *pCmdMbox = (TCmdMbox *)hCmdMbox;
	Command_t  *pCmd = (Command_t*)&pCmdMbox->aCmdTxn[0].tCmdMbox;


	/* Call error CB */
	if (pCmdMbox->fErrorCb != NULL) {
		pCmdMbox->fErrorCb (pCmdMbox->hCmdQueue,
		                    (TI_UINT32)pCmd->cmdID,
		                    CMD_STATUS_TIMEOUT,
		                    (void *)pCmd->parameters);
	}
}
Exemple #3
0
/*
 * \brief	Handle cmdMbox timeout.
 * 
 * \param  hCmdMbox  - Handle to CmdMbox
 * \return TI_OK
 * 
 * \par Description
 * Call fErrorCb() to handle the error.
 * 
 * \sa cmdMbox_SendCommand
 */
static void cmdMbox_TimeOut (TI_HANDLE hCmdMbox, TI_BOOL bTwdInitOccured)
{
    TCmdMbox   *pCmdMbox = (TCmdMbox *)hCmdMbox;
    Command_t  *pCmd = (Command_t*)&pCmdMbox->aCmdTxn[0].tCmdMbox;

    TRACE0(pCmdMbox->hReport, REPORT_SEVERITY_ERROR , "cmdMbox_TimeOut: Timeout occured in CmdMbox\n");

    /* Call error CB */
    if (pCmdMbox->fErrorCb != NULL)
    {
        pCmdMbox->fErrorCb (pCmdMbox->hCmdQueue, 
                            (TI_UINT32)pCmd->cmdID, 
                            CMD_STATUS_TIMEOUT, 
                            (void *)pCmd->parameters);
    }
}