static NFCSTATUS phNciNfc_SeSendCb(void* pContext, void *pInfo, NFCSTATUS wStatus) { NFCSTATUS wStat = wStatus; pphNciNfc_Context_t pNciContext = pContext; UNUSED(pInfo); PH_LOG_NCI_FUNC_ENTRY(); if(NULL != pNciContext) { if(NULL != pNciContext->tTranscvCtxt.tSendPld.pBuff) { PH_LOG_NCI_INFO_STR("De-allocating Send Request Payload Buffer..."); phOsalNfc_FreeMemory(pNciContext->tTranscvCtxt.tSendPld.pBuff); pNciContext->tTranscvCtxt.tSendPld.pBuff = NULL; pNciContext->tTranscvCtxt.tSendPld.wLen = 0; } phNciNfc_Notify(pNciContext, wStatus, NULL); } else { PH_LOG_NCI_CRIT_STR("Invalid context received from RecvMgrHdlr!"); } PH_LOG_NCI_FUNC_EXIT(); return wStat; }
static NFCSTATUS phNciNfc_CompleteNfccResetSequence(void *pContext, NFCSTATUS wStatus) { pphNciNfc_Context_t pNciCtx = pContext; PH_LOG_NCI_FUNC_ENTRY(); if(NULL != pNciCtx) { phNciNfc_Notify(pNciCtx, wStatus,NULL); } PH_LOG_NCI_FUNC_EXIT(); return wStatus; }
static NFCSTATUS phNciNfc_CompleteInitSequence(void *pContext, NFCSTATUS wStatus) { pphNciNfc_Context_t pNciCtx = pContext; phNciNfc_TransactInfo_t tTranscInfo; PH_LOG_NCI_FUNC_ENTRY(); if(NULL != pNciCtx) { tTranscInfo.pContext = (void*)pNciCtx; tTranscInfo.pbuffer = (void*)&pNciCtx->ResetInfo.ResetTypeRsp; tTranscInfo.wLength = sizeof(pNciCtx->ResetInfo.ResetTypeRsp); phNciNfc_Notify(pNciCtx, wStatus,(void *)&tTranscInfo); } PH_LOG_NCI_FUNC_EXIT(); return wStatus; }