• Home
  • Raw
  • Download

Lines Matching refs:NdefSmtCrdFmt

110 static void phFriNfc_Desf_HWrapISONativeCmds(phFriNfc_sNdefSmtCrdFmt_t    *NdefSmtCrdFmt,uint8_t Cm…
113 static NFCSTATUS phFriNfc_Desf_HGetHWVersion(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
116 static NFCSTATUS phFriNfc_Desf_HGetSWVersion(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
119 static NFCSTATUS phFriNfc_Desf_HUpdateVersionDetails(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
122 static NFCSTATUS phFriNfc_Desf_HGetUIDDetails(phFriNfc_sNdefSmtCrdFmt_t * NdefSmtCrdFmt);
125 static NFCSTATUS phFriNfc_Desf_HCreateApp(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
128 static NFCSTATUS phFriNfc_Desf_HSelectApp(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
131 static NFCSTATUS phFriNfc_Desf_HCreatCCFile(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
134 static NFCSTATUS phFriNfc_Desf_HCreatNDEFFile(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
137 static NFCSTATUS phFriNfc_Desf_HWrCCBytes(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
140 static NFCSTATUS phFriNfc_Desf_HWrNDEFData(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
143 static NFCSTATUS phFriNfc_Desf_HSendTransCmd(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
151 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
157 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
162 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
167 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
174 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
180 void phFriNfc_Desfire_Reset( phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desfire_Reset() argument
190 (void)memset((void *)NdefSmtCrdFmt->AddInfo.Type4Info.PICCMasterKey, in phFriNfc_Desfire_Reset()
194 (void)memset((void *)NdefSmtCrdFmt->AddInfo.Type4Info.NFCForumMasterkey, in phFriNfc_Desfire_Reset()
197 NdefSmtCrdFmt->AddInfo.Type4Info.PrevState = 0; in phFriNfc_Desfire_Reset()
202 static void phFriNfc_Desf_HWrapISONativeCmds(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt,uint8_t Cm… in phFriNfc_Desf_HWrapISONativeCmds() argument
213 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_CLASS_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
220 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_OFFSET_P1; in phFriNfc_Desf_HWrapISONativeCmds()
222 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_OFFSET_P2; in phFriNfc_Desf_HWrapISONativeCmds()
234 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_GET_VER_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
239 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_PICC_ADDI_FRAME_RESP; in phFriNfc_Desf_HWrapISONativeCmds()
243 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
249 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HWrapISONativeCmds()
261 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_CREATE_AID_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
264 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
268 NdefSmtCrdFmt->SendRecvBuf[i] = (uint8_t)(PH_FRINFC_DESF_NATIVE_CRAPP_WRDT_LEN + in phFriNfc_Desf_HWrapISONativeCmds()
272 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_FIRST_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
274 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_SECOND_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
276 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_THIRD_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
283 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_CRAPP_WRDT_LEN; in phFriNfc_Desf_HWrapISONativeCmds()
286 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_FIRST_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
288 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_SEC_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
290 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_THIRD_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
294 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_PICC_NFC_KEY_SETTING; in phFriNfc_Desf_HWrapISONativeCmds()
297 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
300 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_KEY_SETTINGS_2; in phFriNfc_Desf_HWrapISONativeCmds()
306 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NFCFORUM_APP_NO_OF_KEYS; in phFriNfc_Desf_HWrapISONativeCmds()
311 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
314 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_FIRST_ISO_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
316 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_SECOND_ISO_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
319 (void)memcpy ((void *)&NdefSmtCrdFmt->SendRecvBuf[i], in phFriNfc_Desf_HWrapISONativeCmds()
326 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
330 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
333 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HWrapISONativeCmds()
338 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_CREATEAPP_CMD_SNLEN; in phFriNfc_Desf_HWrapISONativeCmds()
346 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_SLECT_APP_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
349 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_SLAPP_WRDT_LEN; in phFriNfc_Desf_HWrapISONativeCmds()
353 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
357 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_FIRST_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
360 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_SECOND_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
363 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_THIRD_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
371 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_FIRST_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
374 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_SEC_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
377 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_THIRD_AID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
382 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
386 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_SELECTAPP_CMD_SNLEN; in phFriNfc_Desf_HWrapISONativeCmds()
393 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_CREATE_DATA_FILE_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
396 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
400 NdefSmtCrdFmt->SendRecvBuf[i] = (uint8_t) in phFriNfc_Desf_HWrapISONativeCmds()
404 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_CC_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
407 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_FIRST_CC_FILE_ID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
409 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_SECOND_CC_FILE_ID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
416 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_CRCCNDEF_WRDT_LEN; in phFriNfc_Desf_HWrapISONativeCmds()
419 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
423 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_COMM_SETTINGS; in phFriNfc_Desf_HWrapISONativeCmds()
427 NdefSmtCrdFmt->SendRecvBuf[i] = 0xEE; in phFriNfc_Desf_HWrapISONativeCmds()
429 NdefSmtCrdFmt->SendRecvBuf[i] = 0xEE; in phFriNfc_Desf_HWrapISONativeCmds()
433 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_SIZE; in phFriNfc_Desf_HWrapISONativeCmds()
435 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
437 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
441 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
444 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
447 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HWrapISONativeCmds()
453 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_CREATECCNDEF_CMD_SNLEN; in phFriNfc_Desf_HWrapISONativeCmds()
461 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_CREATE_DATA_FILE_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
464 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
468 NdefSmtCrdFmt->SendRecvBuf[i] = (uint8_t) in phFriNfc_Desf_HWrapISONativeCmds()
472 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_NDEF_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
475 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_FIRST_NDEF_FILE_ID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
477 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_SECOND_NDEF_FILE_ID_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
484 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_CRCCNDEF_WRDT_LEN; in phFriNfc_Desf_HWrapISONativeCmds()
488 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NDEF_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
491 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_COMM_SETTINGS; in phFriNfc_Desf_HWrapISONativeCmds()
496 NdefSmtCrdFmt->SendRecvBuf[i] = 0xEE; in phFriNfc_Desf_HWrapISONativeCmds()
498 NdefSmtCrdFmt->SendRecvBuf[i] = 0xEE; in phFriNfc_Desf_HWrapISONativeCmds()
501 NdefSmtCrdFmt->SendRecvBuf[i]= (uint8_t)NdefSmtCrdFmt->AddInfo.Type4Info.CardSize; in phFriNfc_Desf_HWrapISONativeCmds()
503 NdefSmtCrdFmt->SendRecvBuf[i]= (uint8_t) in phFriNfc_Desf_HWrapISONativeCmds()
504 (NdefSmtCrdFmt->AddInfo.Type4Info.CardSize >> 8); in phFriNfc_Desf_HWrapISONativeCmds()
506 NdefSmtCrdFmt->SendRecvBuf[i]= (uint8_t) in phFriNfc_Desf_HWrapISONativeCmds()
507 (NdefSmtCrdFmt->AddInfo.Type4Info.CardSize >> 16); in phFriNfc_Desf_HWrapISONativeCmds()
511 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
515 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
518 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HWrapISONativeCmds()
524 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_CREATECCNDEF_CMD_SNLEN; in phFriNfc_Desf_HWrapISONativeCmds()
532 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_WRITE_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
535 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_WRCC_WRDT_LEN; in phFriNfc_Desf_HWrapISONativeCmds()
539 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
542 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_CC_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
549 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
554 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
556 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
558 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
562 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_SIZE; in phFriNfc_Desf_HWrapISONativeCmds()
564 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
566 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
569 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
576 (NdefSmtCrdFmt->AddInfo.Type4Info.CardSize >> 8); in phFriNfc_Desf_HWrapISONativeCmds()
578 (NdefSmtCrdFmt->AddInfo.Type4Info.CardSize); in phFriNfc_Desf_HWrapISONativeCmds()
582 (void)memcpy ((void *)&NdefSmtCrdFmt->SendRecvBuf[i], in phFriNfc_Desf_HWrapISONativeCmds()
592 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
595 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
597 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HWrapISONativeCmds()
602 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_WRITECC_CMD_SNLEN; in phFriNfc_Desf_HWrapISONativeCmds()
610 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_WRITE_CMD; in phFriNfc_Desf_HWrapISONativeCmds()
613 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_WRNDEF_WRDT_LEN; in phFriNfc_Desf_HWrapISONativeCmds()
617 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HWrapISONativeCmds()
620 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_NDEF_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
627 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NDEF_FILE_ID; in phFriNfc_Desf_HWrapISONativeCmds()
632 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
634 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
636 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
640 NdefSmtCrdFmt->SendRecvBuf[i] = 0x02; in phFriNfc_Desf_HWrapISONativeCmds()
642 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
644 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HWrapISONativeCmds()
649 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[i], in phFriNfc_Desf_HWrapISONativeCmds()
654 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HWrapISONativeCmds()
657 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_WRITENDEF_CMD_SNLEN; in phFriNfc_Desf_HWrapISONativeCmds()
668 static NFCSTATUS phFriNfc_Desf_HGetHWVersion(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HGetHWVersion() argument
678 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_GET_HW_VERSION; in phFriNfc_Desf_HGetHWVersion()
681 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_GET_HW_VERSION_CMD); in phFriNfc_Desf_HGetHWVersion()
683 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HGetHWVersion()
688 static NFCSTATUS phFriNfc_Desf_HGetSWVersion(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HGetSWVersion() argument
694 if( ( NdefSmtCrdFmt->SendRecvBuf[*(NdefSmtCrdFmt->SendRecvLength)- 1] == in phFriNfc_Desf_HGetSWVersion()
698 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_GET_SW_VERSION; in phFriNfc_Desf_HGetSWVersion()
701 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_GET_SW_VERSION_CMD); in phFriNfc_Desf_HGetSWVersion()
703 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HGetSWVersion()
708 static NFCSTATUS phFriNfc_Desf_HUpdateVersionDetails(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HUpdateVersionDetails() argument
713 if( ( NdefSmtCrdFmt->SendRecvBuf[*(NdefSmtCrdFmt->SendRecvLength)- in phFriNfc_Desf_HUpdateVersionDetails()
716NdefSmtCrdFmt->AddInfo.Type4Info.MajorVersion = NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL3]; in phFriNfc_Desf_HUpdateVersionDetails()
717NdefSmtCrdFmt->AddInfo.Type4Info.MinorVersion = NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL4]; in phFriNfc_Desf_HUpdateVersionDetails()
719 if ((PH_FRINFC_DESF4_MAJOR_VERSION == NdefSmtCrdFmt->AddInfo.Type4Info.MajorVersion) && in phFriNfc_Desf_HUpdateVersionDetails()
720 (PH_FRINFC_DESF4_MINOR_VERSION == NdefSmtCrdFmt->AddInfo.Type4Info.MinorVersion)) in phFriNfc_Desf_HUpdateVersionDetails()
723 NdefSmtCrdFmt->AddInfo.Type4Info.CardSize = PH_FRINFC_DESF4_MEMORY_SIZE; in phFriNfc_Desf_HUpdateVersionDetails()
727 else if ((DESFIRE_EV1_SW_MAJOR_VERSION == NdefSmtCrdFmt->AddInfo.Type4Info.MajorVersion) && in phFriNfc_Desf_HUpdateVersionDetails()
728 (DESFIRE_EV1_SW_MINOR_VERSION == NdefSmtCrdFmt->AddInfo.Type4Info.MinorVersion)) in phFriNfc_Desf_HUpdateVersionDetails()
730 NdefSmtCrdFmt->CardType = DESFIRE_CARD_TYPE_EV1; in phFriNfc_Desf_HUpdateVersionDetails()
742 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HUpdateVersionDetails()
744 switch (NdefSmtCrdFmt->SendRecvBuf[5]) in phFriNfc_Desf_HUpdateVersionDetails()
748 NdefSmtCrdFmt->AddInfo.Type4Info.CardSize = DESFIRE_2K_CARD; in phFriNfc_Desf_HUpdateVersionDetails()
754 NdefSmtCrdFmt->AddInfo.Type4Info.CardSize = DESFIRE_4K_CARD; in phFriNfc_Desf_HUpdateVersionDetails()
760 NdefSmtCrdFmt->AddInfo.Type4Info.CardSize = DESFIRE_8K_CARD; in phFriNfc_Desf_HUpdateVersionDetails()
778 static NFCSTATUS phFriNfc_Desf_HGetUIDDetails(phFriNfc_sNdefSmtCrdFmt_t * NdefSmtCrdFmt) in phFriNfc_Desf_HGetUIDDetails() argument
782 if( ( NdefSmtCrdFmt->SendRecvBuf[*(NdefSmtCrdFmt->SendRecvLength)- in phFriNfc_Desf_HGetUIDDetails()
786 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_GET_UID; in phFriNfc_Desf_HGetUIDDetails()
789 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_GET_UID_CMD); in phFriNfc_Desf_HGetUIDDetails()
791 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HGetUIDDetails()
799 static NFCSTATUS phFriNfc_Desf_HCreateApp(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HCreateApp() argument
804 …if ( (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL14] == PH_FRINFC_DESF_NAT_WRAP_FIRST_RESP_BY… in phFriNfc_Desf_HCreateApp()
805 …&& (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL15] == PH_FRINFC_DESF_NAT_WRAP_SEC_RESP_BYTE )) in phFriNfc_Desf_HCreateApp()
808 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_CREATE_AID; in phFriNfc_Desf_HCreateApp()
811 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_CREATEAPP_CMD); in phFriNfc_Desf_HCreateApp()
813 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HCreateApp()
819 static NFCSTATUS phFriNfc_Desf_HSelectApp(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HSelectApp() argument
828 …if ( (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL0] == PH_FRINFC_DESF_NAT_WRAP_FIRST_RESP_BYT… in phFriNfc_Desf_HSelectApp()
829 … (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL1] == PH_FRINFC_DESF_NAT_WRAP_SEC_RESP_BYTE )) in phFriNfc_Desf_HSelectApp()
832 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_SELECT_APP; in phFriNfc_Desf_HSelectApp()
835 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_SELECTAPP_CMD); in phFriNfc_Desf_HSelectApp()
837 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HSelectApp()
843 static NFCSTATUS phFriNfc_Desf_HCreatCCFile(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HCreatCCFile() argument
848 if ( (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL0] == PH_FRINFC_DESF_NATIVE_RESP_BYTE1) && in phFriNfc_Desf_HCreatCCFile()
849 … (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL1] == PH_FRINFC_DESF_NATIVE_RESP_BYTE2 )) in phFriNfc_Desf_HCreatCCFile()
852 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_CREATE_CCFILE; in phFriNfc_Desf_HCreatCCFile()
855 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_CREATECC_CMD); in phFriNfc_Desf_HCreatCCFile()
857 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HCreatCCFile()
862 static NFCSTATUS phFriNfc_Desf_HCreatNDEFFile(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HCreatNDEFFile() argument
868 if ( (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL0] == PH_FRINFC_DESF_NATIVE_RESP_BYTE1) && in phFriNfc_Desf_HCreatNDEFFile()
869 … (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL1] == PH_FRINFC_DESF_NATIVE_RESP_BYTE2 )) in phFriNfc_Desf_HCreatNDEFFile()
872 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_CREATE_NDEFFILE; in phFriNfc_Desf_HCreatNDEFFile()
875 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_CREATENDEF_CMD); in phFriNfc_Desf_HCreatNDEFFile()
877 status = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HCreatNDEFFile()
885 static NFCSTATUS phFriNfc_Desf_HWrCCBytes(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HWrCCBytes() argument
890 if ( (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL0] == PH_FRINFC_DESF_NATIVE_RESP_BYTE1) && in phFriNfc_Desf_HWrCCBytes()
891 … (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL1] == PH_FRINFC_DESF_NATIVE_RESP_BYTE2 )) in phFriNfc_Desf_HWrCCBytes()
895 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_WRITE_CC_FILE; in phFriNfc_Desf_HWrCCBytes()
898 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_WRITECC_CMD); in phFriNfc_Desf_HWrCCBytes()
900 result = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HWrCCBytes()
905 static NFCSTATUS phFriNfc_Desf_HWrNDEFData(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HWrNDEFData() argument
912 … if ( (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL0] == PH_FRINFC_DESF_NATIVE_RESP_BYTE1) && in phFriNfc_Desf_HWrNDEFData()
913 … (NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL1] == PH_FRINFC_DESF_NATIVE_RESP_BYTE2 )) in phFriNfc_Desf_HWrNDEFData()
916 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_WRITE_NDEF_FILE; in phFriNfc_Desf_HWrNDEFData()
919 phFriNfc_Desf_HWrapISONativeCmds(NdefSmtCrdFmt,PH_FRINFC_DESF_WRITENDEF_CMD); in phFriNfc_Desf_HWrNDEFData()
921 Result = phFriNfc_Desf_HSendTransCmd(NdefSmtCrdFmt); in phFriNfc_Desf_HWrNDEFData()
926 static NFCSTATUS phFriNfc_Desf_HSendTransCmd(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HSendTransCmd() argument
933 NdefSmtCrdFmt->Cmd.Iso144434Cmd = phHal_eIso14443_4_Raw; in phFriNfc_Desf_HSendTransCmd()
935 NdefSmtCrdFmt->Cmd.Iso144434Cmd = phHal_eIso14443_4_CmdListTClCmd; in phFriNfc_Desf_HSendTransCmd()
939 NdefSmtCrdFmt->psDepAdditionalInfo.DepFlags.MetaChaining = 0; in phFriNfc_Desf_HSendTransCmd()
940 NdefSmtCrdFmt->psDepAdditionalInfo.DepFlags.NADPresent = 0; in phFriNfc_Desf_HSendTransCmd()
943 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.CompletionRoutine = phFriNfc_NdefSmtCrd_Process; in phFriNfc_Desf_HSendTransCmd()
944 NdefSmtCrdFmt->SmtCrdFmtCompletionInfo.Context = NdefSmtCrdFmt; in phFriNfc_Desf_HSendTransCmd()
947 *NdefSmtCrdFmt->SendRecvLength = PH_FRINFC_SMTCRDFMT_MAX_SEND_RECV_BUF_SIZE; in phFriNfc_Desf_HSendTransCmd()
951 status = phFriNfc_OvrHal_Transceive(NdefSmtCrdFmt->LowerDevice, in phFriNfc_Desf_HSendTransCmd()
952 &NdefSmtCrdFmt->SmtCrdFmtCompletionInfo, in phFriNfc_Desf_HSendTransCmd()
953 NdefSmtCrdFmt->psRemoteDevInfo, in phFriNfc_Desf_HSendTransCmd()
954 NdefSmtCrdFmt->Cmd, in phFriNfc_Desf_HSendTransCmd()
955 &NdefSmtCrdFmt->psDepAdditionalInfo, in phFriNfc_Desf_HSendTransCmd()
956 NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_Desf_HSendTransCmd()
957 NdefSmtCrdFmt->SendLength, in phFriNfc_Desf_HSendTransCmd()
958 NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_Desf_HSendTransCmd()
959 NdefSmtCrdFmt->SendRecvLength); in phFriNfc_Desf_HSendTransCmd()
966 NFCSTATUS phFriNfc_Desfire_Format(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desfire_Format() argument
971 NdefSmtCrdFmt->CardType = 0; in phFriNfc_Desfire_Format()
973 status = phFriNfc_Desf_HGetHWVersion(NdefSmtCrdFmt); in phFriNfc_Desfire_Format()
983 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt)
993 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HReadOnlyReadCCFile() argument
999 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 2)]) in phFriNfc_Desf_HReadOnlyReadCCFile()
1001 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 1)])) in phFriNfc_Desf_HReadOnlyReadCCFile()
1003 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_RO_READ_CC_FILE; in phFriNfc_Desf_HReadOnlyReadCCFile()
1006 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_CLASS_BYTE; in phFriNfc_Desf_HReadOnlyReadCCFile()
1011 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_READ_DATA_CMD; in phFriNfc_Desf_HReadOnlyReadCCFile()
1016 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_OFFSET_P1; in phFriNfc_Desf_HReadOnlyReadCCFile()
1018 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_OFFSET_P2; in phFriNfc_Desf_HReadOnlyReadCCFile()
1022 NdefSmtCrdFmt->SendRecvBuf[i] = NATIVE_WRAPPER_READ_DATA_LC_VALUE; in phFriNfc_Desf_HReadOnlyReadCCFile()
1026 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HReadOnlyReadCCFile()
1029 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_CC_FILE_ID; in phFriNfc_Desf_HReadOnlyReadCCFile()
1036 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_ID; in phFriNfc_Desf_HReadOnlyReadCCFile()
1041 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyReadCCFile()
1043 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyReadCCFile()
1045 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyReadCCFile()
1049 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_SIZE; in phFriNfc_Desf_HReadOnlyReadCCFile()
1051 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyReadCCFile()
1053 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyReadCCFile()
1057 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HReadOnlyReadCCFile()
1060 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HReadOnlyReadCCFile()
1062 result = phFriNfc_Desf_HSendTransCmd (NdefSmtCrdFmt); in phFriNfc_Desf_HReadOnlyReadCCFile()
1076 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HReadOnlyWriteCCFile() argument
1083 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 2)]) in phFriNfc_Desf_HReadOnlyWriteCCFile()
1085 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 1)])) in phFriNfc_Desf_HReadOnlyWriteCCFile()
1087 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_RO_UPDATE_CC_FILE; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1089 memcpy ((void *)read_cc_btyes, (void *)NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_Desf_HReadOnlyWriteCCFile()
1094 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_CLASS_BYTE; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1099 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_WRITE_CMD; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1104 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_OFFSET_P1; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1106 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_OFFSET_P2; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1110 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_WRCC_WRDT_LEN; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1114 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HReadOnlyWriteCCFile()
1117 NdefSmtCrdFmt->SendRecvBuf[i] = DESFIRE_EV1_CC_FILE_ID; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1124 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_ID; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1129 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1131 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1133 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1137 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_CC_FILE_SIZE; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1139 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1141 NdefSmtCrdFmt->SendRecvBuf[i] = 0x00; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1145 (void)memcpy ((void *)&NdefSmtCrdFmt->SendRecvBuf[i], in phFriNfc_Desf_HReadOnlyWriteCCFile()
1155 NdefSmtCrdFmt->SendRecvBuf[i] = PH_FRINFC_DESF_NATIVE_LE_BYTE; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1158 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_HReadOnlyWriteCCFile()
1160 NdefSmtCrdFmt->SendLength = i; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1165 NdefSmtCrdFmt->SendLength = PH_FRINFC_DESF_WRITECC_CMD_SNLEN; in phFriNfc_Desf_HReadOnlyWriteCCFile()
1168 result = phFriNfc_Desf_HSendTransCmd (NdefSmtCrdFmt); in phFriNfc_Desf_HReadOnlyWriteCCFile()
1182 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HReadOnlySelectApp() argument
1186 NdefSmtCrdFmt->CardType = 0; in phFriNfc_Desf_HReadOnlySelectApp()
1188 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_RO_SELECT_APP; in phFriNfc_Desf_HReadOnlySelectApp()
1191 phFriNfc_Desf_HWrapISONativeCmds (NdefSmtCrdFmt, PH_FRINFC_DESF_SELECTAPP_CMD); in phFriNfc_Desf_HReadOnlySelectApp()
1193 result = phFriNfc_Desf_HSendTransCmd (NdefSmtCrdFmt); in phFriNfc_Desf_HReadOnlySelectApp()
1202 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desf_HReadOnlySelectAppEV1() argument
1206 NdefSmtCrdFmt->CardType = DESFIRE_CARD_TYPE_EV1; in phFriNfc_Desf_HReadOnlySelectAppEV1()
1208 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_RO_SELECT_APP_EV1; in phFriNfc_Desf_HReadOnlySelectAppEV1()
1211 phFriNfc_Desf_HWrapISONativeCmds (NdefSmtCrdFmt, PH_FRINFC_DESF_SELECTAPP_CMD); in phFriNfc_Desf_HReadOnlySelectAppEV1()
1213 result = phFriNfc_Desf_HSendTransCmd (NdefSmtCrdFmt); in phFriNfc_Desf_HReadOnlySelectAppEV1()
1221 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt) in phFriNfc_Desfire_ConvertToReadOnly() argument
1226 result = phFriNfc_Desf_HReadOnlySelectAppEV1 (NdefSmtCrdFmt); in phFriNfc_Desfire_ConvertToReadOnly()
1228 result = phFriNfc_Desf_HReadOnlySelectApp (NdefSmtCrdFmt); in phFriNfc_Desfire_ConvertToReadOnly()
1240 phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt; in phFriNfc_Desf_Process() local
1242 NdefSmtCrdFmt = (phFriNfc_sNdefSmtCrdFmt_t *)Context; in phFriNfc_Desf_Process()
1246 switch(NdefSmtCrdFmt->State) in phFriNfc_Desf_Process()
1253 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 2)]) in phFriNfc_Desf_Process()
1255 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 1)])) in phFriNfc_Desf_Process()
1257 Status = phFriNfc_Desf_HReadOnlyReadCCFile (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1261 Status = phFriNfc_Desf_HReadOnlySelectApp (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1269 Status = phFriNfc_Desf_HReadOnlyReadCCFile (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1275 Status = phFriNfc_Desf_HReadOnlyWriteCCFile (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1282 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 2)]) in phFriNfc_Desf_Process()
1284 NdefSmtCrdFmt->SendRecvBuf[(*NdefSmtCrdFmt->SendRecvLength - 1)])) in phFriNfc_Desf_Process()
1288 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_Process()
1291 NdefSmtCrdFmt->LowerDevice, in phFriNfc_Desf_Process()
1292 &NdefSmtCrdFmt->SmtCrdFmtCompletionInfo, in phFriNfc_Desf_Process()
1293 NdefSmtCrdFmt->psRemoteDevInfo); in phFriNfc_Desf_Process()
1297 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_REACTIVATE; in phFriNfc_Desf_Process()
1316 Status = phFriNfc_Desf_HGetSWVersion (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1326 Status = phFriNfc_Desf_HUpdateVersionDetails (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1329 Status = phFriNfc_Desf_HGetUIDDetails (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1336 Status = phFriNfc_Desf_HCreateApp (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1342 Status = phFriNfc_Desf_HSelectApp (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1348 Status = phFriNfc_Desf_HCreatCCFile (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1354 Status = phFriNfc_Desf_HCreatNDEFFile (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1360 Status = phFriNfc_Desf_HWrCCBytes (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1366 Status = phFriNfc_Desf_HWrNDEFData (NdefSmtCrdFmt); in phFriNfc_Desf_Process()
1373 NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL0]) && in phFriNfc_Desf_Process()
1375 NdefSmtCrdFmt->SendRecvBuf[PH_SMTCRDFMT_DESF_VAL1])) in phFriNfc_Desf_Process()
1377 NdefSmtCrdFmt->CardState = 0; in phFriNfc_Desf_Process()
1379 if (DESFIRE_CARD_TYPE_EV1 == NdefSmtCrdFmt->CardType) in phFriNfc_Desf_Process()
1382 NdefSmtCrdFmt->LowerDevice, in phFriNfc_Desf_Process()
1383 &NdefSmtCrdFmt->SmtCrdFmtCompletionInfo, in phFriNfc_Desf_Process()
1384 NdefSmtCrdFmt->psRemoteDevInfo); in phFriNfc_Desf_Process()
1388 NdefSmtCrdFmt->State = PH_FRINFC_DESF_STATE_REACTIVATE; in phFriNfc_Desf_Process()
1421 phFriNfc_SmtCrdFmt_HCrHandler(NdefSmtCrdFmt,Status); in phFriNfc_Desf_Process()