Home | History | Annotate | Download | only in src

Lines Matching refs:ndef_cntx

152             ||(CHK_NDEF_NOT_DONE == gpphLibContext->ndef_cntx.is_ndef))
157 else if(gpphLibContext->ndef_cntx.is_ndef == FALSE)
162 else if((gpphLibContext->ndef_cntx.is_ndef == TRUE)
163 &&(0 == gpphLibContext->ndef_cntx.NdefActualSize))
179 gpphLibContext->ndef_cntx.eLast_Call = NdefRd;
205 (uint8_t)gpphLibContext->ndef_cntx.psNdefMap
221 gpphLibContext->ndef_cntx.psUpperNdefMsg = psRd;
225 gpphLibContext->ndef_cntx.psNdefMap,
231 gpphLibContext->ndef_cntx.NdefContinueRead =(uint8_t) ((phLibNfc_Ndef_EBegin==Offset) ?
235 RetVal = phFriNfc_NdefMap_RdNdef(gpphLibContext->ndef_cntx.psNdefMap,
236 gpphLibContext->ndef_cntx.psUpperNdefMsg->buffer,
237 (uint32_t*)&gpphLibContext->ndef_cntx.psUpperNdefMsg->length,
238 gpphLibContext->ndef_cntx.NdefContinueRead);
243 gpphLibContext->ndef_cntx.psUpperNdefMsg->length = 0;
302 if (gpphLibContext->psBufferedAuth != NULL && gpphLibContext->ndef_cntx.psNdefMap != NULL) {
304 gpphLibContext->ndef_cntx.psNdefMap->StdMifareContainer.currentBlock;
313 gpphLibContext->ndef_cntx.is_ndef = FALSE;
405 (gpphLibContext->ndef_cntx.is_ndef == CHK_NDEF_NOT_DONE))
411 else if(FALSE == gpphLibContext->ndef_cntx.is_ndef)
415 else if(psWr->length > gpphLibContext->ndef_cntx.NdefLength)
429 gpphLibContext->ndef_cntx.psUpperNdefMsg = psWr;
430 gpphLibContext->ndef_cntx.AppWrLength= psWr->length;
431 gpphLibContext->ndef_cntx.eLast_Call = NdefWr;
460 (uint8_t)gpphLibContext->ndef_cntx.psNdefMap
484 gpphLibContext->ndef_cntx.psNdefMap,
493 RetVal = phFriNfc_NdefMap_EraseNdef(gpphLibContext->ndef_cntx.psNdefMap);
500 RetVal=phFriNfc_NdefMap_WrNdef(gpphLibContext->ndef_cntx.psNdefMap,
501 gpphLibContext->ndef_cntx.psUpperNdefMsg->buffer,
502 (uint32_t*)&gpphLibContext->ndef_cntx.psUpperNdefMsg->length,
550 if (gpphLibContext->psBufferedAuth != NULL && gpphLibContext->ndef_cntx.psNdefMap != NULL) {
552 gpphLibContext->ndef_cntx.psNdefMap->TLVStruct.NdefTLVBlock;
579 if(gpphLibContext->ndef_cntx.AppWrLength >
580 gpphLibContext->ndef_cntx.NdefLength)
586 pLibNfc_Ctxt->ndef_cntx.NdefActualSize =
587 pLibNfc_Ctxt->ndef_cntx.psUpperNdefMsg->length;
636 if(NULL == gpphLibContext->ndef_cntx.psNdefMap)
639 gpphLibContext->ndef_cntx.psNdefMap = (phFriNfc_NdefMap_t *)
642 if(NULL != gpphLibContext->ndef_cntx.psNdefMap)
645 (void)memset(gpphLibContext->ndef_cntx.psNdefMap,0,sizeof(phFriNfc_NdefMap_t));
646 gpphLibContext->ndef_cntx.NdefSendRecvLen = NDEF_SENDRCV_BUF_LEN;
647 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf =
649 ndef_cntx.NdefSendRecvLen);
651 if(NULL != gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf)
653 (void)memset(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
655 gpphLibContext->ndef_cntx.NdefSendRecvLen);
679 gpphLibContext->ndef_cntx.is_ndef = CHK_NDEF_NOT_DONE;
681 if(NULL == gpphLibContext->ndef_cntx.ndef_fmt)
684 gpphLibContext->ndef_cntx.ndef_fmt = (phFriNfc_sNdefSmtCrdFmt_t *)
687 if(NULL != gpphLibContext->ndef_cntx.ndef_fmt)
689 (void)memset(gpphLibContext->ndef_cntx.ndef_fmt,
706 if(gpphLibContext->ndef_cntx.psNdefMap !=NULL)
708 if(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf !=NULL)
710 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf);
711 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf=NULL;
713 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap);
714 gpphLibContext->ndef_cntx.psNdefMap =NULL;
717 if(NULL != gpphLibContext->ndef_cntx.ndef_fmt)
719 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.ndef_fmt);
720 gpphLibContext->ndef_cntx.ndef_fmt = NULL;
789 gpphLibContext->ndef_cntx.NdefSendRecvLen=300;
790 gpphLibContext->ndef_cntx.eLast_Call = ChkNdef;
793 RetVal = phFriNfc_NdefMap_Reset( gpphLibContext->ndef_cntx.psNdefMap,
797 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
798 gpphLibContext->ndef_cntx.NdefSendRecvLen,
799 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
800 &(gpphLibContext->ndef_cntx.NdefSendRecvLen),
808 gpphLibContext->ndef_cntx.psNdefMap,
814 RetVal = phFriNfc_NdefMap_ChkNdef(gpphLibContext->ndef_cntx.psNdefMap);
828 if((0x00 == gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id)||
829 (PH_OSALNFC_INVALID_TIMER_ID == gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id))
831 gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id =
834 if((0x00 == gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id)||
835 (PH_OSALNFC_INVALID_TIMER_ID == gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id))
841 phOsalNfc_Timer_Start(gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id,
896 gpphLibContext->ndef_cntx.is_ndef = TRUE;
898 pLibNfc_Ctxt->ndef_cntx.psNdefMap,
899 &(pLibNfc_Ctxt->ndef_cntx.NdefLength),
900 &(pLibNfc_Ctxt->ndef_cntx.NdefActualSize));
902 Ndef_Info.ActualNdefMsgLength = pLibNfc_Ctxt->ndef_cntx.NdefActualSize;
903 Ndef_Info.MaxNdefMsgLength = pLibNfc_Ctxt->ndef_cntx.NdefLength;
921 gpphLibContext->ndef_cntx.is_ndef = FALSE;
940 gpphLibContext->ndef_cntx.is_ndef = TRUE;
942 pLibNfc_Ctxt->ndef_cntx.psNdefMap,
943 &(pLibNfc_Ctxt->ndef_cntx.NdefLength),
944 &(pLibNfc_Ctxt->ndef_cntx.NdefActualSize));
947 pLibNfc_Ctxt->ndef_cntx.NdefActualSize;
949 = pLibNfc_Ctxt->ndef_cntx.NdefLength
988 (uint8_t)gpphLibContext->ndef_cntx.psNdefMap
1008 switch (pLibNfc_Ctxt->ndef_cntx.psNdefMap->CardState)
1062 gpphLibContext->ndef_cntx.is_ndef = FALSE;
1100 (uint8_t)gpphLibContext->ndef_cntx.psNdefMap
1130 phOsalNfc_Timer_Delete(gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id);
1131 gpphLibContext->ndef_cntx.Chk_Ndef_Timer_Id = 0x00;
1144 switch(gpphLibContext->ndef_cntx.eLast_Call)
1200 pLibNfc_Ctxt->ndef_cntx.pClientNdefFmtCb;
1201 pUpperLayerContext= pLibNfc_Ctxt->ndef_cntx.pClientNdefFmtCntx;
1202 pLibNfc_Ctxt->ndef_cntx.pClientNdefFmtCb = NULL;
1203 pLibNfc_Ctxt->ndef_cntx.pClientNdefFmtCntx = NULL;
1282 (NULL != gpphLibContext->ndef_cntx.pClientNdefFmtCb)
1283 ||(gpphLibContext->ndef_cntx.is_ndef == TRUE))
1299 gpphLibContext->ndef_cntx.eLast_Call = NdefFmt;
1300 gpphLibContext->ndef_cntx.NdefSendRecvLen = NDEF_SENDRCV_BUF_LEN;
1304 RetVal = phFriNfc_NdefSmtCrd_Reset(gpphLibContext->ndef_cntx.ndef_fmt,
1308 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
1309 &(gpphLibContext->ndef_cntx.NdefSendRecvLen));
1313 RetVal = phFriNfc_NdefSmtCrd_SetCR(gpphLibContext->ndef_cntx.ndef_fmt,
1324 RetVal = phFriNfc_NdefSmtCrd_Format(gpphLibContext->ndef_cntx.ndef_fmt,
1329 gpphLibContext->ndef_cntx.pClientNdefFmtCb = pNdefformat_RspCb;
1330 gpphLibContext->ndef_cntx.pClientNdefFmtCntx = pContext;
1380 || (NULL != gpphLibContext->ndef_cntx.pClientNdefFmtCb)
1381 || (FALSE == gpphLibContext->ndef_cntx.is_ndef))
1388 gpphLibContext->ndef_cntx.psNdefMap->CardState)
1395 gpphLibContext->ndef_cntx.eLast_Call = NdefReadOnly;
1416 gpphLibContext->ndef_cntx.NdefSendRecvLen = NDEF_SENDRCV_BUF_LEN;
1420 ret_val = phFriNfc_NdefSmtCrd_Reset (gpphLibContext->ndef_cntx.ndef_fmt,
1424 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
1425 &(gpphLibContext->ndef_cntx.NdefSendRecvLen));
1430 ret_val = phFriNfc_NdefSmtCrd_SetCR (gpphLibContext->ndef_cntx.ndef_fmt,
1437 gpphLibContext->ndef_cntx.ndef_fmt);
1452 ret_val = phFriNfc_NdefMap_Reset (gpphLibContext->ndef_cntx.psNdefMap,
1456 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
1457 gpphLibContext->ndef_cntx.NdefSendRecvLen,
1458 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf,
1459 &(gpphLibContext->ndef_cntx.NdefSendRecvLen),
1468 gpphLibContext->ndef_cntx.psNdefMap,
1475 gpphLibContext->ndef_cntx.psNdefMap);
1490 gpphLibContext->ndef_cntx.pClientNdefFmtCb= NULL;
1496 gpphLibContext->ndef_cntx.pClientNdefFmtCb = pNdefReadOnly_RspCb;
1497 gpphLibContext->ndef_cntx.pClientNdefFmtCntx = pContext;
1573 pClientCb = gpphLibContext->ndef_cntx.pClientNdefFmtCb;
1574 pUpperLayerContext= gpphLibContext->ndef_cntx.pClientNdefFmtCntx;
1575 gpphLibContext->ndef_cntx.pClientNdefFmtCb = NULL;
1576 gpphLibContext->ndef_cntx.pClientNdefFmtCntx = NULL;
1623 gpphLibContext->ndef_cntx.psNdefMap->CardState =
1636 p_client_cb = gpphLibContext->ndef_cntx.pClientNdefFmtCb;
1637 p_upper_layer_ctxt = gpphLibContext->ndef_cntx.pClientNdefFmtCntx;
1638 gpphLibContext->ndef_cntx.pClientNdefFmtCb = NULL;
1639 gpphLibContext->ndef_cntx.pClientNdefFmtCntx = NULL;
1709 NdefInfo.NdefMessageLengthActual = gpphLibContext->ndef_cntx.NdefActualSize;
1710 NdefInfo.NdefMessageLengthMaximum = gpphLibContext->ndef_cntx.NdefLength;
1730 if(gpphLibContext->ndef_cntx.pNdef_NtfSrch_Type==NULL)
1831 if(gpphLibContext->ndef_cntx.pNdef_NtfSrch_Type!=NULL)
1909 gpphLibContext->ndef_cntx.pNdef_NtfSrch_Type = psSrchTypeList;
1947 phOsalNfc_GetMemory(gpphLibContext->ndef_cntx.NdefActualSize);
1949 gpphLibContext->ndef_cntx.NdefActualSize;
1954 gpphLibContext->ndef_cntx.psNdefMap,
1960 gpphLibContext->ndef_cntx.NdefContinueRead = PH_FRINFC_NDEFMAP_SEEK_BEGIN;
1962 RetVal = phFriNfc_NdefMap_RdNdef(gpphLibContext->ndef_cntx.psNdefMap,