Lines Matching refs:StdMifareContainer
467 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_VAL0;
473 StdMifareContainer.internalBuf[index] = PH_FRINFC_MIFARESTD_VAL0;
476 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
481 NdefMap->StdMifareContainer.RemainingBufFlag = PH_FRINFC_MIFARESTD_FLAG0;
485 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
488 NdefMap->StdMifareContainer.internalBufFlag = PH_FRINFC_MIFARESTD_FLAG0;
491 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
494 NdefMap->StdMifareContainer.SectorIndex = PH_FRINFC_MIFARESTD_VAL0;
496 NdefMap->StdMifareContainer.NdefBlocks = PH_FRINFC_MIFARESTD_VAL0;
498 NdefMap->StdMifareContainer.NoOfNdefCompBlocks = PH_FRINFC_MIFARESTD_VAL0;
500 NdefMap->StdMifareContainer.ReadAcsBitFlag = PH_FRINFC_MIFARESTD_FLAG0;
502 NdefMap->StdMifareContainer.remSizeUpdFlag = PH_FRINFC_MIFARESTD_FLAG0;
516 NdefMap->StdMifareContainer.remainingSize = PH_FRINFC_MIFARESTD_VAL0;
518 NdefMap->StdMifareContainer.ReadNdefFlag = PH_FRINFC_MIFARESTD_FLAG0;
520 NdefMap->StdMifareContainer.WrNdefFlag = PH_FRINFC_MIFARESTD_FLAG0;
522 NdefMap->StdMifareContainer.ChkNdefFlag = PH_FRINFC_MIFARESTD_FLAG0;
524 NdefMap->StdMifareContainer.aidCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
526 NdefMap->StdMifareContainer.NFCforumSectFlag = PH_FRINFC_MIFARESTD_FLAG0;
528 NdefMap->StdMifareContainer.ProprforumSectFlag = PH_FRINFC_MIFARESTD_PROP_1ST_CONFIG;
530 NdefMap->StdMifareContainer.ReadCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
532 NdefMap->StdMifareContainer.FirstReadFlag = PH_FRINFC_MIFARESTD_FLAG0;
534 NdefMap->StdMifareContainer.WrLength = PH_FRINFC_MIFARESTD_VAL1;
536 NdefMap->StdMifareContainer.ChkNdefCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
572 NdefMap->StdMifareContainer.CRIndex = PH_FRINFC_NDEFMAP_CR_CHK_NDEF;
590 NdefMap->StdMifareContainer.NoOfNdefCompBlocks =
592 NdefMap->StdMifareContainer.remainingSize =
596 NdefMap->StdMifareContainer.remainingSize);
602 NdefMap->StdMifareContainer.NoOfNdefCompBlocks =
604 NdefMap->StdMifareContainer.remainingSize =
608 NdefMap->StdMifareContainer.remainingSize);
617 if((NdefMap->StdMifareContainer.currentBlock != 0) &&
618 (NdefMap->StdMifareContainer.currentBlock != 1) &&
619 (NdefMap->StdMifareContainer.currentBlock != 2) &&
620 (NdefMap->StdMifareContainer.currentBlock != 64) &&
621 (NdefMap->StdMifareContainer.currentBlock != 65) &&
622 (NdefMap->StdMifareContainer.currentBlock != 66) )
626 else if( NdefMap->StdMifareContainer.AuthDone == 0)
632 if(NdefMap->StdMifareContainer.currentBlock == 0)
634 NdefMap->StdMifareContainer.currentBlock = 1;
649 NdefMap->StdMifareContainer.ChkNdefFlag = PH_FRINFC_MIFARESTD_FLAG1;
660 NdefMap->SendRecvBuf[0] = NdefMap->StdMifareContainer.currentBlock;
708 NdefMap->StdMifareContainer.CRIndex = PH_FRINFC_NDEFMAP_CR_RD_NDEF;
723 NdefMap->StdMifareContainer.ReadNdefFlag = PH_FRINFC_MIFARESTD_FLAG1;
728 (NdefMap->StdMifareContainer.ReadWriteCompleteFlag ==
746 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
750 ((NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)?
780 NdefMap->StdMifareContainer.CRIndex = PH_FRINFC_NDEFMAP_CR_WR_NDEF;
795 NdefMap->StdMifareContainer.RdBeforeWrFlag = PH_FRINFC_MIFARESTD_FLAG1;
796 NdefMap->StdMifareContainer.WrNdefFlag = PH_FRINFC_MIFARESTD_FLAG1;
797 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
798 NdefMap->StdMifareContainer.RdAfterWrFlag = PH_FRINFC_MIFARESTD_FLAG0;
799 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
803 NdefMap->StdMifareContainer.FirstReadFlag = PH_FRINFC_MIFARESTD_FLAG0;
804 NdefMap->StdMifareContainer.remainingSize =
805 (NdefMap->StdMifareContainer.NoOfNdefCompBlocks *
807 NdefMap->StdMifareContainer.currentBlock =
809 NdefMap->StdMifareContainer.NdefBlocks = PH_FRINFC_MIFARESTD_VAL1;
810 NdefMap->StdMifareContainer.NFCforumSectFlag = PH_FRINFC_MIFARESTD_FLAG0;
820 NdefMap->StdMifareContainer.PollFlag = PH_FRINFC_MIFARESTD_FLAG0;
822 NdefMap->StdMifareContainer.PollFlag = PH_FRINFC_MIFARESTD_FLAG1;
824 NdefMap->StdMifareContainer
825 NdefMap->StdMifareContainer.FirstWriteFlag = PH_FRINFC_MIFARESTD_FLAG1;
829 (NdefMap->StdMifareContainer.ReadWriteCompleteFlag ==
830 PH_FRINFC_MIFARESTD_FLAG1)) || ((NdefMap->StdMifareContainer.PollFlag ==
844 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
846 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
849 if(NdefMap->StdMifareContainer.PollFlag ==
857 else if(NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)
962 NdefMap->StdMifareContainer.FirstReadFlag = PH_FRINFC_MIFARESTD_FLAG0;
977 if(NdefMap->StdMifareContainer.RdAfterWrFlag ==
988 if(NdefMap->StdMifareContainer.TempBlockNo ==
989 NdefMap->StdMifareContainer.currentBlock)
991 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
992 NdefMap->StdMifareContainer.Buffer,
993 NdefMap->StdMifareContainer.internalLength);
996 NdefMap->StdMifareContainer.currentBlock =
997 NdefMap->StdMifareContainer.TempBlockNo;
1004 /*NdefMap->StdMifareContainer.remainingSize -=
1026 NdefMap->StdMifareContainer.currentBlock;
1048 if(((NdefMap->StdMifareContainer.ReadNdefFlag ==
1050 (NdefMap->StdMifareContainer.WrNdefFlag ==
1054 NdefMap->StdMifareContainer.NFCforumSectFlag =
1059 if(((NdefMap->StdMifareContainer.WrNdefFlag ==
1062 ((NdefMap->StdMifareContainer.ReadNdefFlag ==
1069 if(NdefMap->StdMifareContainer.AuthDone ==
1076 Status = ((NdefMap->StdMifareContainer.ReadNdefFlag ==
1081 NdefMap->StdMifareContainer.ReadNdefFlag =
1083 NdefMap->StdMifareContainer.WrNdefFlag =
1087 if(NdefMap->StdMifareContainer.ChkNdefFlag ==
1120 NdefMap->StdMifareContainer.currentBlock =
1129 NdefMap->StdMifareContainer.PollFlag = PH_FRINFC_MIFARESTD_FLAG0;
1147 if(NdefMap->StdMifareContainer.FirstReadFlag == PH_FRINFC_MIFARESTD_FLAG1)
1149 NdefMap->StdMifareContainer.FirstReadFlag = PH_FRINFC_MIFARESTD_FLAG0;
1156 (NdefMap->StdMifareContainer.WrLength >
1175 NdefMap->StdMifareContainer.PollFlag = PH_FRINFC_MIFARESTD_FLAG1;
1176 if(NdefMap->StdMifareContainer.FirstWriteFlag ==
1179 NdefMap->StdMifareContainer.FirstWriteFlag =
1181 NdefMap->StdMifareContainer.WrLength =
1182 ((NdefMap->StdMifareContainer.NFCforumSectFlag ==
1185 NdefMap->StdMifareContainer.WrLength);
1187 /*if(NdefMap->StdMifareContainer.WrLength != PH_FRINFC_MIFARESTD_VAL0)
1190 NdefMap->StdMifareContainer.ReadCompleteFlag =
1195 else*/ if(NdefMap->StdMifareContainer.WrLength == PH_FRINFC_MIFARESTD_VAL0)
1241 if(NdefMap->StdMifareContainer.internalLength > PH_FRINFC_MIFARESTD_VAL0)
1248 NdefMap->StdMifareContainer.currentBlock;
1272 if((((NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
1273 NdefMap->StdMifareContainer.NdefBlocks) *
1277 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
1278 (uint8_t)((((NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
1279 NdefMap->StdMifareContainer.NdefBlocks) *
1328 NdefMap->StdMifareContainer.remainingSize )?
1331 NdefMap->StdMifareContainer.remainingSize);
1333 NdefMap->SendRecvBuf[0] = NdefMap->StdMifareContainer.currentBlock;
1337 if(NdefMap->StdMifareContainer.internalLength > 0)
1341 NdefMap->StdMifareContainer.internalBuf,
1342 NdefMap->StdMifareContainer.internalLength);
1344 Temp16Bytes += (uint8_t)(NdefMap->StdMifareContainer.internalLength);
1365 NdefMap->StdMifareContainer.internalBufFlag = PH_FRINFC_MIFARESTD_FLAG1;
1409 NdefMap->StdMifareContainer.RemainingBufFlag = PH_FRINFC_MIFARESTD_FLAG1;
1428 (void)memcpy( NdefMap->StdMifareContainer.Buffer,
1453 if(NdefMap->StdMifareContainer.NdefBlocks >
1454 NdefMap->StdMifareContainer.NoOfNdefCompBlocks)
1456 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
1505 NdefMap->StdMifareContainer.currentBlock);
1510 if(( (NdefMap->StdMifareContainer.currentBlock != PH_FRINFC_MIFARESTD_MAD_BLK0) &&
1511 (NdefMap->StdMifareContainer.currentBlock != PH_FRINFC_MIFARESTD_MAD_BLK1) &&
1512 (NdefMap->StdMifareContainer.currentBlock != PH_FRINFC_MIFARESTD_MAD_BLK2) &&
1513 (NdefMap->StdMifareContainer.currentBlock != PH_FRINFC_MIFARESTD_MAD_BLK64) &&
1514 (NdefMap->StdMifareContainer.currentBlock != PH_FRINFC_MIFARESTD_MAD_BLK65) &&
1515 (NdefMap->StdMifareContainer.currentBlock != PH_FRINFC_MIFARESTD_MAD_BLK66)) ||
1559 NdefMap->CompletionRoutine[NdefMap->StdMifareContainer.CRIndex].
1568 if(NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK2)
1570 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_MAD_BLK64;
1571 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
1573 else if(NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK64)
1575 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_MAD_BLK65;
1579 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_MAD_BLK66;
1592 if( (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK1) ||
1593 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK64))
1598 NdefMap->StdMifareContainer.aid[NdefMap->StdMifareContainer.SectorIndex] =
1600 NdefMap->StdMifareContainer.SectorIndex++;
1611 NdefMap->StdMifareContainer.NFCforumSectFlag = PH_FRINFC_MIFARESTD_FLAG1;
1612 NdefMap->StdMifareContainer.aid[NdefMap->StdMifareContainer.SectorIndex] =
1614 NdefMap->StdMifareContainer.SectorIndex++;
1618 NdefMap->StdMifareContainer.aid[NdefMap->StdMifareContainer.SectorIndex] =
1620 NdefMap->StdMifareContainer.SectorIndex++;
1624 NdefMap->StdMifareContainer.aidCompleteFlag =
1625 ((NdefMap->StdMifareContainer.NFCforumSectFlag ==
1630 NdefMap->StdMifareContainer.NFCforumSectFlag = PH_FRINFC_MIFARESTD_FLAG0;
1631 if(NdefMap->StdMifareContainer.aidCompleteFlag == PH_FRINFC_MIFARESTD_FLAG1)
1641 if((NdefMap->StdMifareContainer.aidCompleteFlag == PH_FRINFC_MIFARESTD_FLAG1) &&
1646 for(byteindex = NdefMap->StdMifareContainer.SectorIndex;
1650 NdefMap->StdMifareContainer.aid[byteindex] =
1658 if((NdefMap->StdMifareContainer.aidCompleteFlag == PH_FRINFC_MIFARESTD_FLAG1) &&
1661 for(byteindex = NdefMap->StdMifareContainer.SectorIndex;
1665 NdefMap->StdMifareContainer.aid[byteindex] =
1680 SectorID = phFriNfc_MifStd_H_GetSect(NdefMap->StdMifareContainer.currentBlock);
1688 SectorID = phFriNfc_MifStd_H_GetSect(NdefMap->StdMifareContainer.currentBlock);
1709 else if(NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK64)
1711 NdefMap->StdMifareContainer.currentBlock += PH_FRINFC_MIFARESTD_BLK4;
1717 if(NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK63)
1719 NdefMap->StdMifareContainer.currentBlock += PH_FRINFC_MIFARESTD_BLK4;
1729 if(((NdefMap->StdMifareContainer.currentBlock + 1) %
1732 NdefMap->StdMifareContainer.currentBlock++;
1736 if(NdefMap->StdMifareContainer.aid[SectorID] ==
1745 if((NdefMap->StdMifareContainer.currentBlock ==
1748 (NdefMap->StdMifareContainer.internalLength == 0))
1750 NdefMap->StdMifareContainer.AuthDone = 0;
1756 NdefMap->StdMifareContainer.currentBlock += 16;
1792 if(NdefMap->StdMifareContainer.ReadAcsBitFlag == PH_FRINFC_MIFARESTD_FLAG1)
1795 ((NdefMap->StdMifareContainer.currentBlock > 127)?
1803 NdefMap->StdMifareContainer.currentBlock;
1817 if((NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK0) ||
1818 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK1) ||
1819 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK2) ||
1820 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK3) ||
1821 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK64) ||
1822 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK65) ||
1823 (NdefMap->StdMifareContainer.currentBlock == PH_FRINFC_MIFARESTD_MAD_BLK66) )
1841 NdefMap->StdMifareContainer.WriteFlag =
1843 NdefMap->StdMifareContainer.ReadFlag =
1848 NdefMap->StdMifareContainer.WriteFlag =
1850 NdefMap->StdMifareContainer.ReadFlag =
1877 NdefMap->StdMifareContainer.WriteFlag =
1879 NdefMap->StdMifareContainer.ReadFlag =
1898 NdefMap->StdMifareContainer.WriteFlag =
1900 NdefMap->StdMifareContainer.ReadFlag =
1905 NdefMap->StdMifareContainer.WriteFlag =
1907 NdefMap->StdMifareContainer.ReadFlag =
1945 else if((NdefMap->StdMifareContainer
1946 (NdefMap->StdMifareContainer.ChkNdefCompleteFlag ==
1948 (NdefMap->StdMifareContainer.currentBlock !=
1950 (NdefMap->StdMifareContainer.currentBlock !=
1953 /* NdefMap->StdMifareContainer.currentBlock =
1954 ((NdefMap->StdMifareContainer.ReadCompleteFlag ==
1956 NdefMap->StdMifareContainer.currentBlock:
1957 (NdefMap->StdMifareContainer.currentBlock +
1959 NdefMap->StdMifareContainer.currentBlock =
1960 ((NdefMap->StdMifareContainer.currentBlock ==
1962 (NdefMap->StdMifareContainer.currentBlock +
1964 NdefMap->StdMifareContainer.currentBlock);*/
1966 Result = ((NdefMap->StdMifareContainer.ReadAcsBitFlag ==
1985 else if(NdefMap->StdMifareContainer.ReadNdefFlag ==
2006 else if(NdefMap->StdMifareContainer.WrNdefFlag ==
2011 else if(NdefMap->StdMifareContainer.RdBeforeWrFlag ==
2014 /*NdefMap->StdMifareContainer.ReadFlag =
2018 else if(NdefMap->StdMifareContainer.RdAfterWrFlag ==
2026 NdefMap->StdMifareContainer.currentBlock) &&
2035 Result = ((NdefMap->StdMifareContainer.ReadFlag ==
2064 && (NdefMap->StdMifareContainer.aid[index] ==
2068 NdefMap->StdMifareContainer.NoOfNdefCompBlocks -=
2075 if(NdefMap->StdMifareContainer.aid[index] ==
2079 NdefMap->StdMifareContainer.NoOfNdefCompBlocks -=
2091 if(NdefMap->StdMifareContainer.aid[index] ==
2097 NdefMap->StdMifareContainer.NoOfNdefCompBlocks -=
2113 TempLength = ((NdefMap->StdMifareContainer.internalLength > 0)?
2114 NdefMap->StdMifareContainer.internalLength :
2117 if(NdefMap->StdMifareContainer.internalLength > 0)
2120 NdefMap->StdMifareContainer.internalBuf,
2278 if(((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
2279 NdefMap->StdMifareContainer.NdefBlocks) *
2287 RemainingBytes = ((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
2288 NdefMap->StdMifareContainer.NdefBlocks) * 16) +
2289 NdefMap->StdMifareContainer.internalLength);
2316 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
2334 NdefMap->StdMifareContainer.currentBlock++;
2335 NdefMap->StdMifareContainer.NdefBlocks++;
2339 if(NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)
2366 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
2382 NdefMap->StdMifareContainer.currentBlock++;
2383 NdefMap->StdMifareContainer.NdefBlocks++;
2387 if(NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)
2424 (void)memcpy(NdefMap->StdMifareContainer.internalBuf,
2429 NdefMap->StdMifareContainer.internalLength =
2458 NdefMap->StdMifareContainer.currentBlock++;
2459 NdefMap->StdMifareContainer.NdefBlocks++;
2463 if(NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)
2490 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
2491 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
2497 NdefMap->StdMifareContainer.currentBlock++;
2498 NdefMap->StdMifareContainer.NdefBlocks++;
2504 (void)memcpy(NdefMap->StdMifareContainer.internalBuf,
2510 NdefMap->StdMifareContainer.internalLength =
2538 NdefMap->StdMifareContainer.currentBlock++;
2539 NdefMap->StdMifareContainer.NdefBlocks++;
2543 Result = ((NdefMap->StdMifareContainer.AuthDone ==
2578 if(NdefMap->StdMifareContainer.remainingSize <
2584 RemainingBytes = NdefMap->StdMifareContainer.remainingSize;
2599 NdefMap->StdMifareContainer.remainingSize -= RemainingBytes;
2605 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
2615 NdefMap->StdMifareContainer.internalLength =
2623 if(NdefMap->StdMifareContainer.internalLength == PH_FRINFC_MIFARESTD_VAL0)
2625 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
2626 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
2632 NdefMap->StdMifareContainer.currentBlock++;
2633 NdefMap->StdMifareContainer.NdefBlocks++;
2659 NdefMap->StdMifareContainer.remainingSize -=
2676 NdefMap->StdMifareContainer.currentBlock++;
2677 NdefMap->StdMifareContainer.NdefBlocks++;
2681 if(NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)
2711 NdefMap->StdMifareContainer.remainingSize -= RemainingBytes;
2730 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
2736 NdefMap->StdMifareContainer.internalLength =
2741 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
2747 NdefMap->StdMifareContainer.internalLength =
2753 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
2754 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
2760 NdefMap->StdMifareContainer.currentBlock++;
2761 NdefMap->StdMifareContainer.NdefBlocks++;
2782 NdefMap->StdMifareContainer.remainingSize -=
2791 NdefMap->StdMifareContainer.currentBlock++;
2792 NdefMap->StdMifareContainer.NdefBlocks++;
2796 Result = ((NdefMap->StdMifareContainer.AuthDone ==
2807 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
2808 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
2856 if(NdefMap->StdMifareContainer.remainingSize <
2862 RemainingBytes = NdefMap->StdMifareContainer.remainingSize;
2867 NdefMap->StdMifareContainer.internalLength) &&
2872 &(NdefMap->StdMifareContainer.internalBuf[
2876 NdefMap->StdMifareContainer.remainingSize -= RemainingBytes;
2881 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
2882 &(NdefMap->StdMifareContainer.internalBuf[RemainingBytes]),
2883 (NdefMap->StdMifareContainer.internalLength - RemainingBytes));
2886 NdefMap->StdMifareContainer.internalLength -= RemainingBytes;
2889 if(NdefMap->StdMifareContainer.internalLength == PH_FRINFC_MIFARESTD_VAL0)
2891 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
2892 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
2898 NdefMap->StdMifareContainer.currentBlock++;
2899 NdefMap->StdMifareContainer.NdefBlocks++;
2916 NdefMap->StdMifareContainer.internalLength) &&
2920 &(NdefMap->StdMifareContainer.internalBuf[(*TempintBytes)]),
2924 NdefMap->StdMifareContainer.remainingSize -=
2935 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
2936 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
2943 NdefMap->StdMifareContainer.ReadWriteCompleteFlag)
2951 NdefMap->StdMifareContainer.internalLength)
2956 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
2959 NdefMap->StdMifareContainer.currentBlock++;
2960 NdefMap->StdMifareContainer.NdefBlocks++;
2965 ((NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)?
2979 NdefMap->StdMifareContainer.internalLength) &&
2980 (RemainingBytes <= NdefMap->StdMifareContainer.internalLength))
2983 &(NdefMap->StdMifareContainer.internalBuf[(*TempintBytes)]),
2987 NdefMap->StdMifareContainer.remainingSize -=
2995 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
2996 &(NdefMap->StdMifareContainer.internalBuf[RemainingBytes]),
2997 (NdefMap->StdMifareContainer.internalLength - RemainingBytes));
3000 NdefMap->StdMifareContainer.internalLength -= RemainingBytes;
3001 if(NdefMap->StdMifareContainer.internalLength == PH_FRINFC_MIFARESTD_VAL0)
3003 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
3004 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
3010 NdefMap->StdMifareContainer.currentBlock++;
3011 NdefMap->StdMifareContainer.NdefBlocks++;
3021 NdefMap->StdMifareContainer.internalLength) &&
3022 (RemainingBytes > NdefMap->StdMifareContainer.internalLength))
3025 &(NdefMap->StdMifareContainer.internalBuf[(*TempintBytes)]),
3026 NdefMap->StdMifareContainer.internalLength);
3028 NdefMap->ApduBuffIndex += NdefMap->StdMifareContainer.internalLength;
3029 NdefMap->StdMifareContainer.remainingSize -=
3030 NdefMap->StdMifareContainer.internalLength;
3031 NdefMap->TLVStruct.BytesRemainLinTLV -= NdefMap->StdMifareContainer.internalLength;
3038 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
3040 NdefMap->StdMifareContainer
3041 NdefMap->StdMifareContainer.NdefBlocks++;
3045 Result = ((NdefMap->StdMifareContainer.AuthDone ==
3055 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = (uint8_t)
3056 (((NdefMap->StdMifareContainer.remainingSize == PH_FRINFC_MIFARESTD_VAL0) ||
3080 if(((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
3081 NdefMap->StdMifareContainer.NdefBlocks) *
3083 (NdefMap->StdMifareContainer.internalLength -
3090 RemainingBytes = ((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
3091 NdefMap->StdMifareContainer.NdefBlocks) * 16) +
3092 (NdefMap->StdMifareContainer.internalLength -
3111 CRFlag =(uint8_t) ((NdefMap->StdMifareContainer.internalBuf[(*TempintBytes)]!=
3118 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
3131 if(*TempintBytes == NdefMap->StdMifareContainer.internalLength)
3133 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
3137 NdefMap->StdMifareContainer.currentBlock++;
3138 NdefMap->StdMifareContainer.NdefBlocks++;
3143 ((NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)?
3153 CRFlag = (uint8_t)((NdefMap->StdMifareContainer.internalBuf[(*TempintBytes)]==
3160 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
3171 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
3182 if(*TempintBytes == NdefMap->StdMifareContainer.internalLength)
3184 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
3188 NdefMap->StdMifareContainer.currentBlock++;
3189 NdefMap->StdMifareContainer.NdefBlocks++;
3193 Result = ((NdefMap->StdMifareContainer.AuthDone ==
3202 (NdefMap->StdMifareContainer.internalLength - *TempintBytes)) &&
3208 &(NdefMap->StdMifareContainer.internalBuf[
3220 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
3221 &(NdefMap->StdMifareContainer.internalBuf[
3224 NdefMap->StdMifareContainer.internalLength -= (*TempintBytes +
3231 (NdefMap->StdMifareContainer.internalLength - *TempintBytes)) &&
3237 &(NdefMap->StdMifareContainer.internalBuf[
3248 if(*TempintBytes == NdefMap->StdMifareContainer.internalLength)
3251 NdefMap->StdMifareContainer.currentBlock++;
3252 NdefMap->StdMifareContainer.NdefBlocks++;
3256 Result = ((NdefMap->StdMifareContainer.AuthDone ==
3265 (NdefMap->StdMifareContainer.internalLength - *TempintBytes)) &&
3266 (RemainingBytes <= (NdefMap->StdMifareContainer.internalLength -
3272 &(NdefMap->StdMifareContainer.internalBuf[
3281 (void)memcpy(NdefMap->StdMifareContainer.internalBuf,
3282 &(NdefMap->StdMifareContainer.internalBuf[(*TempintBytes)]),
3283 (NdefMap->StdMifareContainer.internalLength - *TempintBytes));
3286 NdefMap->StdMifareContainer.internalLength -= *TempintBytes;
3293 (NdefMap->StdMifareContainer.internalLength - *TempintBytes)) &&
3294 (RemainingBytes > (NdefMap->StdMifareContainer.internalLength -
3300 &(NdefMap->StdMifareContainer.internalBuf[
3302 (NdefMap->StdMifareContainer.internalLength -
3304 NdefMap->ApduBuffIndex += (NdefMap->StdMifareContainer.internalLength -
3307 (NdefMap->StdMifareContainer.internalLength - *TempintBytes);
3308 *TempintBytes += (uint8_t)(NdefMap->StdMifareContainer.internalLength -
3311 NdefMap->StdMifareContainer.internalLength -= *TempintBytes;
3314 NdefMap->StdMifareContainer.currentBlock++;
3315 NdefMap->StdMifareContainer.NdefBlocks++;
3319 Result = ((NdefMap->StdMifareContainer.AuthDone ==
3329 if(((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
3330 NdefMap->StdMifareContainer.NdefBlocks) *
3332 NdefMap->StdMifareContainer.internalLength) ==
3335 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
3363 if(NdefMap->StdMifareContainer.currentBlock ==
3390 (void)memcpy( NdefMap->StdMifareContainer.Buffer,
3425 if((NdefMap->StdMifareContainer.NoOfNdefCompBlocks !=
3427 (NdefMap->StdMifareContainer.NoOfNdefCompBlocks <=
3432 NdefMap->StdMifareContainer.currentBlock = 4;
3433 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
3436 (NdefMap->StdMifareContainer.AuthDone ==
3439 NdefMap->StdMifareContainer.ReadAcsBitFlag = 0;
3453 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_BLK4;
3454 NdefMap->StdMifareContainer.NdefBlocks = PH_FRINFC_MIFARESTD_VAL1;
3463 NdefMap->StdMifareContainer.internalLength = PH_FRINFC_MIFARESTD_VAL0;
3464 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
3465 NdefMap->StdMifareContainer.NFCforumSectFlag = PH_FRINFC_MIFARESTD_FLAG0;
3466 NdefMap->StdMifareContainer.FirstReadFlag = PH_FRINFC_MIFARESTD_FLAG1;
3467 NdefMap->StdMifareContainer.ReadWriteCompleteFlag = PH_FRINFC_MIFARESTD_FLAG0;
3468 NdefMap->StdMifareContainer.remainingSize = (uint16_t)
3469 (NdefMap->StdMifareContainer.NoOfNdefCompBlocks *
3471 NdefMap->StdMifareContainer.WrLength = PH_FRINFC_MIFARESTD_VAL1;
3482 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG0;
3487 NdefMap->SendRecvBuf[0] = NdefMap->StdMifareContainer.currentBlock;
3515 == phFriNfc_MifStd_H_GetSect(NdefMap->StdMifareContainer.currentBlock))?
3526 Result = ((NdefMap->StdMifareContainer.AuthDone ==
3530 NdefMap->StdMifareContainer.currentBlock));
3568 NdefMap->StdMifareContainer.currentBlock;
3604 if((((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
3605 NdefMap->StdMifareContainer.NdefBlocks) *
3622 if((((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
3623 NdefMap->StdMifareContainer.NdefBlocks) *
3649 NdefMap->StdMifareContainer.remainingSize -=
3652 NdefMap->StdMifareContainer.remSizeUpdFlag =
3662 NdefMap->StdMifareContainer.remainingSize -=
3753 if(((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
3754 NdefMap->StdMifareContainer.NdefBlocks) *
3775 NdefMap->StdMifareContainer.remainingSize -=
3781 NdefMap->StdMifareContainer.remainingSize -=
3809 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
3819 NdefMap->StdMifareContainer.remainingSize -= PH_FRINFC_MIFARESTD_VAL1;
3820 if(NdefMap->StdMifareContainer.remainingSize <
3842 NdefMap->StdMifareContainer.remainingSize -=
3849 NdefMap->StdMifareContainer.remainingSize)
3856 if(NdefMap->StdMifareContainer.remainingSize ==
3941 NdefMap->StdMifareContainer.currentBlock++;
3942 NdefMap->StdMifareContainer.NdefBlocks++;
3952 NdefMap->StdMifareContainer.currentBlock++;
3953 NdefMap->StdMifareContainer.NdefBlocks++;
3966 NdefMap->StdMifareContainer.currentBlock++;
3967 NdefMap->StdMifareContainer.NdefBlocks++;
3971 ((NdefMap->StdMifareContainer.AuthDone == PH_FRINFC_MIFARESTD_FLAG1)?
4004 NdefMap->StdMifareContainer.remainingSize -=
4008 NdefMap->StdMifareContainer.remainingSize)?
4028 NdefMap->StdMifareContainer.remainingSize -=
4048 NdefMap->StdMifareContainer.remainingSize -=
4054 NdefMap->StdMifareContainer.remainingSize)?
4075 NdefMap->StdMifareContainer.remainingSize -=
4107 if(((( NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
4108 NdefMap->StdMifareContainer.NdefBlocks) *
4121 NdefMap->StdMifareContainer.remainingSize -=
4128 NdefMap->StdMifareContainer.remainingSize)
4138 NdefMap->StdMifareContainer.remainingSize -=
4161 switch((NdefMap->StdMifareContainer.currentBlock % 4))
4165 (NdefMap->StdMifareContainer.currentBlock +
4171 (NdefMap->StdMifareContainer.currentBlock +
4177 StdMifareContainer.currentBlock +
4183 NdefMap->StdMifareContainer.currentBlock;
4190 switch((NdefMap->StdMifareContainer.currentBlock % 16))
4194 (NdefMap->StdMifareContainer.currentBlock +
4200 (NdefMap->StdMifareContainer.currentBlock +
4206 (NdefMap->StdMifareContainer.currentBlock +
4212 (NdefMap->StdMifareContainer.currentBlock +
4218 (NdefMap->StdMifareContainer.currentBlock +
4224 (NdefMap->StdMifareContainer.currentBlock +
4230 (NdefMap->StdMifareContainer.currentBlock +
4236 (NdefMap->StdMifareContainer.currentBlock +
4242 (NdefMap->StdMifareContainer.currentBlock +
4248 (NdefMap->StdMifareContainer.currentBlock +
4254 (NdefMap->StdMifareContainer.currentBlock +
4260 (NdefMap->StdMifareContainer.currentBlock +
4266 (NdefMap->StdMifareContainer.currentBlock +
4272 (NdefMap->StdMifareContainer.currentBlock +
4278 (NdefMap->StdMifareContainer.currentBlock +
4284 NdefMap->StdMifareContainer.currentBlock;
4294 if(NdefMap->StdMifareContainer.currentBlock ==
4300 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_VAL2;
4302 Result = ((NdefMap->StdMifareContainer.aidCompleteFlag ==
4308 (NdefMap->StdMifareContainer.currentBlock ==
4310 (NdefMap->StdMifareContainer.currentBlock ==
4318 NdefMap->StdMifareContainer.aidCompleteFlag =
4321 else if((NdefMap->StdMifareContainer.currentBlock >
4329 Result = ((NdefMap->StdMifareContainer.aidCompleteFlag ==
4344 if(NdefMap->StdMifareContainer.aidCompleteFlag ==
4347 NdefMap->StdMifareContainer.ChkNdefCompleteFlag =
4355 if((NdefMap->StdMifareContainer.NoOfNdefCompBlocks == 0) ||
4356 (NdefMap->StdMifareContainer.NoOfNdefCompBlocks > 255))
4363 NdefMap->StdMifareContainer.aidCompleteFlag =
4365 NdefMap->StdMifareContainer.NFCforumSectFlag =
4367 NdefMap->StdMifareContainer.currentBlock = PH_FRINFC_MIFARESTD_BLK4;
4385 NdefMap->StdMifareContainer.AuthDone = PH_FRINFC_MIFARESTD_FLAG1;
4390 NdefMap->StdMifareContainer.AuthDone = 1;
4391 NdefMap->StdMifareContainer.ReadAcsBitFlag = 1;
4430 if(NdefMap->StdMifareContainer.ReadAcsBitFlag ==
4436 if((NdefMap->StdMifareContainer.ChkNdefFlag ==
4443 NdefMap->StdMifareContainer.NoOfNdefCompBlocks =
4444 ((NdefMap->StdMifareContainer.currentBlock >=
4446 (NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
4448 (NdefMap->StdMifareContainer.NoOfNdefCompBlocks -
4451 NdefMap->StdMifareContainer.ProprforumSectFlag =
4452 ((NdefMap->StdMifareContainer.NFCforumSectFlag ==
4461 NdefMap->StdMifareContainer.NFCforumSectFlag =
4462 (((NdefMap->StdMifareContainer.currentBlock == 64) &&
4464 NdefMap->StdMifareContainer.NFCforumSectFlag:
4468 if(NdefMap->StdMifareContainer.ProprforumSectFlag !=
4471 NdefMap->StdMifareContainer.ReadAcsBitFlag = PH_FRINFC_MIFARESTD_FLAG0;
4472 /* ((NdefMap->StdMifareContainer.ReadCompleteFlag ==
4477 NdefMap->StdMifareContainer.ReadCompleteFlag =
4478 (uint8_t)((((((NdefMap->StdMifareContainer.currentBlock +
4483 (NdefMap->StdMifareContainer.ReadCompleteFlag ==
4485 (NdefMap->StdMifareContainer.ReadCompleteFlag ==
4490 NdefMap->StdMifareContainer.ReadCompleteFlag =
4491 (uint8_t)((((((uint16_t)(NdefMap->StdMifareContainer.currentBlock +
4496 (NdefMap->StdMifareContainer.ReadCompleteFlag ==
4498 (NdefMap->StdMifareContainer.ReadCompleteFlag ==
4503 NdefMap->StdMifareContainer.currentBlock =
4504 ((NdefMap->StdMifareContainer.ReadCompleteFlag ==
4507 NdefMap->StdMifareContainer.currentBlock);
4510 ((NdefMap->StdMifareContainer.ReadCompleteFlag ==
4523 NdefMap->StdMifareContainer.ChkNdefFlag =
4565 NdefMap->CardState = (((NdefMap->StdMifareContainer.ChkNdefFlag ==
4567 (NdefMap->StdMifareContainer.ReadNdefFlag ==
4569 (NdefMap->StdMifareContainer.WrNdefFlag ==
4602 if(NdefMap->StdMifareContainer.NFCforumSectFlag ==
4605 NdefMap->StdMifareContainer.ProprforumSectFlag =
4607 if(NdefMap->StdMifareContainer.currentBlock <
4617 if(((NdefMap->StdMifareContainer.currentBlock <
4620 ((NdefMap->StdMifareContainer.currentBlock <=
4627 else if((NdefMap->StdMifareContainer.currentBlock <
4632 NdefMap->StdMifareContainer.currentBlock =
4637 if(((NdefMap->StdMifareContainer.currentBlock +
4647 NdefMap->StdMifareContainer.remainingSize -=
4649 NdefMap->StdMifareContainer.currentBlock +=
4654 else if((NdefMap->StdMifareContainer.currentBlock +
4663 NdefMap->StdMifareContainer.remainingSize -=
4665 NdefMap->StdMifareContainer.currentBlock +=
4674 else if((NdefMap->StdMifareContainer.ProprforumSectFlag ==
4676 (NdefMap->StdMifareContainer.NFCforumSectFlag ==
4688 NdefMap->StdMifareContainer.ProprforumSectFlag =
4718 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
4721 NdefMap->StdMifareContainer.TempBlockNo =
4722 NdefMap->StdMifareContainer.currentBlock;
4724 NdefMap->StdMifareContainer.currentBlock =
4740 NdefMap->StdMifareContainer.currentBlock);
4757 NdefMap->StdMifareContainer.currentBlock;
4759 TempLength = ((NdefMap->StdMifareContainer.currentBlock ==
4764 NdefMap->StdMifareContainer.remainingSize -=
4765 ((NdefMap->StdMifareContainer.remSizeUpdFlag ==
4770 NdefMap->StdMifareContainer.remSizeUpdFlag = PH_FRINFC_MIFARESTD_FLAG0;
4865 RemainingBytes = (uint16_t)((NdefMap->StdMifareContainer.remainingSize
4868 NdefMap->StdMifareContainer.remainingSize:
4873 NdefMap->StdMifareContainer.currentBlock;
4878 NdefMap->StdMifareContainer.internalLength))?
4881 NdefMap->StdMifareContainer.internalLength));
4883 if(NdefMap->StdMifareContainer.internalLength >
4889 NdefMap->StdMifareContainer.internalBuf,
4890 NdefMap->StdMifareContainer.internalLength);
4896 NdefMap->StdMifareContainer.internalLength)]),
4906 ((BytesToWrite + NdefMap->StdMifareContainer.internalLength
4911 if((BytesToWrite + NdefMap->StdMifareContainer.internalLength +
4915 NdefMap->StdMifareContainer.internalLength +
4922 NdefMap->StdMifareContainer.internalLength))?
4937 (void)memcpy(NdefMap->StdMifareContainer.Buffer,
4997 (NdefMap->StdMifareContainer.currentBlock ==
5002 NdefMap->StdMifareContainer.RdBeforeWrFlag = PH_FRINFC_MIFARESTD_FLAG1;
5003 NdefMap->StdMifareContainer.currentBlock++;
5004 NdefMap->StdMifareContainer.NdefBlocks++;
5008 Result = ((NdefMap->StdMifareContainer.AuthDone ==
5016 NdefMap->StdMifareContainer.RdBeforeWrFlag = PH_FRINFC_MIFARESTD_FLAG0;
5023 NdefMap->StdMifareContainer.internalLength =
5028 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
5029 NdefMap->StdMifareContainer.Buffer,
5030 NdefMap->StdMifareContainer.internalLength);
5036 NdefMap->StdMifareContainer.remainingSize -=
5040 if((NdefMap->StdMifareContainer.remainingSize ==
5044 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
5045 (uint8_t)((NdefMap->StdMifareContainer.remainingSize == 0)?
5048 if(NdefMap->StdMifareContainer.internalLength ==
5051 NdefMap->StdMifareContainer.currentBlock++;
5055 NdefMap->StdMifareContainer.NdefBlocks++;
5059 (uint8_t)(((NdefMap->StdMifareContainer.remainingSize ==
5069 NdefMap->StdMifareContainer.currentBlock++;
5075 NdefMap->StdMifareContainer.NdefBlocks++;
5076 Result = ((NdefMap->StdMifareContainer.AuthDone ==
5088 (NdefMap->StdMifareContainer.remainingSize >
5100 NdefMap->StdMifareContainer.TempBlockNo =
5101 NdefMap->StdMifareContainer.currentBlock;
5103 NdefMap->StdMifareContainer.currentBlock =
5178 NdefMap->StdMifareContainer.RdAfterWrFlag = PH_FRINFC_MIFARESTD_FLAG1;
5200 NdefMap->StdMifareContainer.RdAfterWrFlag =
5225 NdefMap->StdMifareContainer.RdAfterWrFlag =
5238 NdefMap->StdMifareContainer.currentBlock;
5265 NdefMap->StdMifareContainer.currentBlock;
5285 NdefMap->StdMifareContainer.RdAfterWrFlag =
5301 NdefMap->StdMifareContainer.RdAfterWrFlag = PH_FRINFC_MIFARESTD_FLAG1;
5325 NdefMap->StdMifareContainer.currentBlock;
5385 NdefMap->StdMifareContainer.currentBlock;
5394 NdefMap->StdMifareContainer.RdAfterWrFlag = PH_FRINFC_MIFARESTD_FLAG0;
5409 NdefMap->StdMifareContainer.currentBlock--;
5417 NdefMap->StdMifareContainer.currentBlock++;
5429 NdefMap->StdMifareContainer.currentBlock++;
5450 SectorID = phFriNfc_MifStd_H_GetSect(NdefMap->StdMifareContainer.currentBlock);
5454 if((NdefMap->StdMifareContainer.aid[SectorID] ==
5461 if(NdefMap->StdMifareContainer.currentBlock > 128)
5464 ((((NdefMap->StdMifareContainer.currentBlock +
5471 NdefMap->StdMifareContainer.currentBlock -=
5472 ((((NdefMap->StdMifareContainer.currentBlock +
5483 ((((NdefMap->StdMifareContainer.currentBlock +
5490 NdefMap->StdMifareContainer.currentBlock -=
5491 ((((NdefMap->StdMifareContainer.currentBlock +
5520 NdefMap->StdMifareContainer.currentBlock;
5535 NdefMap->StdMifareContainer.currentBlock;
5549 NdefMap->StdMifareContainer.RdAfterWrFlag = PH_FRINFC_MIFARESTD_FLAG0;
5581 NdefMap->StdMifareContainer.currentBlock;
5615 NdefMap->StdMifareContainer.currentBlock;
5626 NdefMap->StdMifareContainer.RdAfterWrFlag = PH_FRINFC_MIFARESTD_FLAG0;
5636 NdefMap->StdMifareContainer.currentBlock);
5687 NdefMap->StdMifareContainer.currentBlock;
5710 NdefMap->StdMifareContainer.WrLength = PH_FRINFC_MIFARESTD_VAL0;
5715 if(NdefMap->StdMifareContainer.RemainingBufFlag ==
5719 NdefMap->StdMifareContainer.internalLength =
5724 (void)memcpy( NdefMap->StdMifareContainer.internalBuf,
5725 NdefMap->StdMifareContainer.Buffer,
5726 NdefMap->StdMifareContainer.internalLength);
5731 NdefMap->StdMifareContainer.remainingSize -=
5734 NdefMap->StdMifareContainer.RemainingBufFlag = PH_FRINFC_MIFARESTD_VAL0;
5736 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
5737 (uint8_t)((NdefMap->StdMifareContainer.remainingSize ==
5743 (uint8_t)(((NdefMap->StdMifareContainer.remainingSize ==
5751 else if(NdefMap->StdMifareContainer.internalBufFlag ==
5754 (void)memcpy(NdefMap->StdMifareContainer.internalBuf,
5755 NdefMap->StdMifareContainer.Buffer,
5758 NdefMap->StdMifareContainer.internalLength =
5765 NdefMap->StdMifareContainer.remainingSize -=
5768 NdefMap->StdMifareContainer.internalBufFlag =
5771 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
5772 (uint8_t)(((NdefMap->StdMifareContainer.remainingSize ==
5774 (NdefMap->StdMifareContainer.internalLength ==
5780 (uint8_t)(((NdefMap->StdMifareContainer.remainingSize ==
5789 NdefMap->StdMifareContainer.internalLength = 0;
5793 NdefMap->StdMifareContainer.remainingSize -=
5797 if((NdefMap->StdMifareContainer.remainingSize ==
5801 NdefMap->StdMifareContainer.ReadWriteCompleteFlag =
5802 (uint8_t)((NdefMap->StdMifareContainer.remainingSize == 0)?
5805 if(NdefMap->StdMifareContainer.internalLength ==
5808 NdefMap->StdMifareContainer.currentBlock++;
5811 Result = ((NdefMap->StdMifareContainer.remainingSize == 0)?
5814 NdefMap->StdMifareContainer.NdefBlocks++;
5817 (uint8_t)(((NdefMap->StdMifareContainer.remainingSize ==
5826 NdefMap->StdMifareContainer.currentBlock++;
5827 NdefMap->StdMifareContainer.WrLength =
5834 NdefMap->StdMifareContainer.NdefBlocks++;
5835 Result = ((NdefMap->StdMifareContainer.AuthDone ==
5852 (NdefMap->StdMifareContainer.remainingSize >
5864 NdefMap->StdMifareContainer.TempBlockNo =
5865 NdefMap->StdMifareContainer.currentBlock;
5867 NdefMap->StdMifareContainer.currentBlock =
5917 NdefMap->StdMifareContainer.DevInputParam);
5932 NdefMap->StdMifareContainer.DevInputParam);
5941 if(((NdefMap->StdMifareContainer.currentBlock + PH_FRINFC_MIFARESTD_INC_1) %
5944 NdefMap->StdMifareContainer.currentBlock++;
5948 if(NdefMap->StdMifareContainer.aid[SectorID] ==
5955 if((NdefMap->StdMifareContainer.currentBlock ==
5957 (NdefMap->StdMifareContainer.internalLength == 0))
5959 NdefMap->StdMifareContainer.AuthDone = 0;
5965 NdefMap->StdMifareContainer.currentBlock += PH_FRINFC_MIFARESTD_BLK4;