/external/libnfc-nxp/src/ |
D | phFriNfc_MifareStdMap.c | 65 static NFCSTATUS phFriNfc_MifStd_H_RdABlock(phFriNfc_NdefMap_t *NdefMap); 71 static NFCSTATUS phFriNfc_MifStd_H_WrABlock(phFriNfc_NdefMap_t *NdefMap); 77 static NFCSTATUS phFriNfc_MifStd_H_AuthSector(phFriNfc_NdefMap_t *NdefMap); 83 static NFCSTATUS phFriNfc_MifStd4k_H_CheckNdef(phFriNfc_NdefMap_t *NdefMap); 88 static void phFriNfc_MifStd_H_fillAIDarray(phFriNfc_NdefMap_t *NdefMap); 100 static NFCSTATUS phFriNfc_MifStd_H_BlkChk(phFriNfc_NdefMap_t *NdefMap); 105 static NFCSTATUS phFriNfc_MifStd_H_RdAcsBit(phFriNfc_NdefMap_t *NdefMap); 110 static NFCSTATUS phFriNfc_MifStd_H_ChkAcsBit(phFriNfc_NdefMap_t *NdefMap); 116 static NFCSTATUS phFriNfc_MifStd_H_ChkRdWr(phFriNfc_NdefMap_t *NdefMap); 122 static void phFriNfc_MifStd_H_ChkNdefCmpltSects(phFriNfc_NdefMap_t *NdefMap); [all …]
|
D | phFriNfc_DesfireMap.c | 69 static NFCSTATUS phFriNfc_Desfire_SelectSmartTag( phFriNfc_NdefMap_t *NdefMap); 75 static NFCSTATUS phFriNfc_Desfire_SelectFile ( phFriNfc_NdefMap_t *NdefMap); 81 static NFCSTATUS phFriNfc_Desfire_ReadBinary( phFriNfc_NdefMap_t *NdefMap); 87 static NFCSTATUS phFriNfc_Desfire_UpdateBinary( phFriNfc_NdefMap_t *NdefMap); 93 static NFCSTATUS phFriNfc_Desfire_Update_SmartTagCapContainer( phFriNfc_NdefMap_t *NdefMap); 97 static void phFriNfc_Desfire_HCrHandler( phFriNfc_NdefMap_t *NdefMap, 101 static uint32_t phFriNfc_Desfire_HGetLeBytes( phFriNfc_NdefMap_t *NdefMap); 103 static NFCSTATUS phFriNfc_Desf_HChkAndParseTLV( phFriNfc_NdefMap_t *NdefMap, 106 static NFCSTATUS phFriNfc_Desfire_HSetGet_NLEN( phFriNfc_NdefMap_t *NdefMap); 108 static void phFriNfc_Desfire_HProcReadData( phFriNfc_NdefMap_t *NdefMap); [all …]
|
D | phFriNfc_FelicaMap.c | 53 static NFCSTATUS phFriNfc_Felica_HRdAttrInfo(phFriNfc_NdefMap_t *NdefMap); 54 static NFCSTATUS phFriNfc_Felica_HUpdateAttrInfo(phFriNfc_NdefMap_t *NdefMap); 61 static NFCSTATUS phFriNfc_Felica_HPollCard( phFriNfc_NdefMap_t *NdefMap, 65 static NFCSTATUS phFriNfc_Felica_HUpdateManufIdDetails(const phFriNfc_NdefMap_t *NdefMap); 68 static NFCSTATUS phFriNfc_Felica_HReadData(phFriNfc_NdefMap_t *NdefMap,uint8_t offset); 69 static uint16_t phFriNfc_Felica_HGetMaximumBlksToRead(const phFriNfc_NdefMap_t *NdefMap,uint8_t … 70 static void phFriNfc_Felica_HAfterRead_CopyDataToBuff(phFriNfc_NdefMap_t *NdefMap); 71 static NFCSTATUS phFriNfc_Felica_HSetTransceiveForRead(phFriNfc_NdefMap_t *NdefMap,uint16_t TrxLe… 72 static uint16_t phFriNfc_Felica_HSetTrxLen(phFriNfc_NdefMap_t *NdefMap,uint16_t Nbc); 73 static NFCSTATUS phFriNfc_Felica_HChkApduBuff_Size( phFriNfc_NdefMap_t *NdefMap); [all …]
|
D | phFriNfc_MifareULMap.c | 51 static void phFriNfc_MifareUL_H_Complete(phFriNfc_NdefMap_t *NdefMap, 58 static NFCSTATUS phFriNfc_MfUL_H_Rd16Bytes( phFriNfc_NdefMap_t *NdefMap); 64 static NFCSTATUS phFriNfc_MfUL_H_findNDEFTLV(phFriNfc_NdefMap_t *NdefMap, 71 static NFCSTATUS phFriNfc_MfUL_H_Chk16Bytes(phFriNfc_NdefMap_t *NdefMap, 79 static NFCSTATUS phFriNfc_MfUL_H_RdCardfindNdefTLV( phFriNfc_NdefMap_t *NdefMap, 86 static NFCSTATUS phFriNfc_MfUL_H_ChkRemainTLV(phFriNfc_NdefMap_t *NdefMap, 94 static void phFriNfc_MfUL_H_UpdateLen(phFriNfc_NdefMap_t *NdefMap, 101 static NFCSTATUS phFriNfc_MfUL_H_NxtOp(phFriNfc_NdefMap_t *NdefMap, 108 static NFCSTATUS phFriNfc_MfUL_H_CopyRdBytes(phFriNfc_NdefMap_t *NdefMap); 114 static NFCSTATUS phFriNfc_MfUL_H_CpDataToUserBuf(phFriNfc_NdefMap_t *NdefMap); [all …]
|
D | phFriNfc_TopazMap.c | 97 static NFCSTATUS phFriNfc_Tpz_H_RdBytes(phFriNfc_NdefMap_t *NdefMap, 105 static NFCSTATUS phFriNfc_Tpz_H_ProReadID(phFriNfc_NdefMap_t *NdefMap); 111 static NFCSTATUS phFriNfc_Tpz_H_ProReadAll(phFriNfc_NdefMap_t *NdefMap); 117 static NFCSTATUS phFriNfc_Tpz_H_CallNxtOp(phFriNfc_NdefMap_t *NdefMap); 123 static NFCSTATUS phFriNfc_Tpz_H_ChkCCBytes(phFriNfc_NdefMap_t *NdefMap); 129 static NFCSTATUS phFriNfc_Tpz_H_findNDEFTLV(phFriNfc_NdefMap_t *NdefMap); 135 static NFCSTATUS phFriNfc_Tpz_H_WrAByte(phFriNfc_NdefMap_t *NdefMap, 145 static NFCSTATUS phFriNfc_Tpz_H_ProWrNMN(phFriNfc_NdefMap_t *NdefMap); 151 static NFCSTATUS phFriNfc_Tpz_H_ProWrTLV(phFriNfc_NdefMap_t *NdefMap); 157 static NFCSTATUS phFriNfc_Tpz_H_WrLByte(phFriNfc_NdefMap_t *NdefMap); [all …]
|
D | phFriNfc_NdefMap.c | 77 static void phFriNfc_DesfCapCont_HReset(phFriNfc_NdefMap_t *NdefMap); 82 static void phFriNfc_Felica_HReset(phFriNfc_NdefMap_t *NdefMap); 92 NFCSTATUS phFriNfc_NdefMap_Reset( phFriNfc_NdefMap_t *NdefMap, in phFriNfc_NdefMap_Reset() argument 105 if ( (ReceiveLength == NULL) || (NdefMap == NULL) || (psRemoteDevInfo == NULL) || in phFriNfc_NdefMap_Reset() 116 NdefMap->State = PH_FRINFC_NDEFMAP_STATE_RESET_INIT; in phFriNfc_NdefMap_Reset() 121 NdefMap->CompletionRoutine[index].CompletionRoutine = NULL; in phFriNfc_NdefMap_Reset() 123 NdefMap->CompletionRoutine[index].Context = NULL; in phFriNfc_NdefMap_Reset() 128 NdefMap->LowerDevice = LowerDevice; in phFriNfc_NdefMap_Reset() 131 NdefMap->psRemoteDevInfo = psRemoteDevInfo; in phFriNfc_NdefMap_Reset() 134 NdefMap->ApduBuffer = TrxBuffer; in phFriNfc_NdefMap_Reset() [all …]
|
D | phFriNfc_MapTools.c | 64 NFCSTATUS phFriNfc_MapTool_SetCardState(phFriNfc_NdefMap_t *NdefMap, in phFriNfc_MapTool_SetCardState() argument 72 NdefMap->CardState =(uint8_t) (((NdefMap->CardState == in phFriNfc_MapTool_SetCardState() 74 (NdefMap->CardState == in phFriNfc_MapTool_SetCardState() 81 switch(NdefMap->CardState) in phFriNfc_MapTool_SetCardState() 84 NdefMap->CardState =(uint8_t) ((NdefMap->CardState == in phFriNfc_MapTool_SetCardState() 86 NdefMap->CardState: in phFriNfc_MapTool_SetCardState() 91 NdefMap->CardState = (uint8_t)((NdefMap->CardState == in phFriNfc_MapTool_SetCardState() 93 NdefMap->CardState: in phFriNfc_MapTool_SetCardState() 98 NdefMap->CardState = (uint8_t)((NdefMap->CardState == in phFriNfc_MapTool_SetCardState() 100 NdefMap->CardState: in phFriNfc_MapTool_SetCardState() [all …]
|
D | phFriNfc_IntNdefMap.c | 73 NFCSTATUS phFriNfc_ChkAndParseTLV(phFriNfc_NdefMap_t *NdefMap) 77 switch ( NdefMap->CardType ) 88 status = phFriNfc_Desf_ChkAndParseTLV(NdefMap,PH_FRINFC_NDEFMAP_DESF_TLV_INDEX); 119 NFCSTATUS phFriNfc_NdefMap_SetCardState(phFriNfc_NdefMap_t *NdefMap, in phFriNfc_NdefMap_SetCardState() argument 125 NdefMap->CardState =(uint8_t) (((NdefMap->CardState == in phFriNfc_NdefMap_SetCardState() 127 (NdefMap->CardState == in phFriNfc_NdefMap_SetCardState() 130 NdefMap->CardState); in phFriNfc_NdefMap_SetCardState() 134 switch(NdefMap->CardState) in phFriNfc_NdefMap_SetCardState() 137 NdefMap->CardState =(uint8_t) ((NdefMap->CardState == in phFriNfc_NdefMap_SetCardState() 139 NdefMap->CardState: in phFriNfc_NdefMap_SetCardState() [all …]
|
D | phFriNfc_DesfireMap.h | 120 #define PH_NFCFRI_NDEFMAP_DESF_NDEF_FILE_SIZE (NdefMap->DesfireCapContainer.N… 172 NdefMap->SendRecvBuf[PH_FRINFC_DESF_IDX_0] = PH_FRINFC_DESF_NATIVE_CLASS_BYTE;\ 173 NdefMap->SendRecvBuf[PH_FRINFC_DESF_IDX_2] = PH_FRINFC_DESF_NATIVE_OFFSET_P1;\ 174 NdefMap->SendRecvBuf[PH_FRINFC_DESF_IDX_3] = PH_FRINFC_DESF_NATIVE_OFFSET_P2;\ 175 switch(NdefMap->State)\ 180 if ( NdefMap->State == PH_FRINFC_DESF_STATE_GET_HW_VERSION )\ 182 NdefMap->SendRecvBuf[PH_FRINFC_DESF_IDX_1] = PH_FRINFC_DESF_GET_VER_CMD;\ 186 NdefMap->SendRecvBuf[PH_FRINFC_DESF_IDX_1] = 0xAF;\ 188 NdefMap->SendRecvBuf[PH_FRINFC_DESF_IDX_4] = 0x00;\ 189 NdefMap->SendLength = PH_FRINFC_DESF_IDX_5;\ [all …]
|
D | phFriNfc_TopazDynamicMap.c | 260 phFriNfc_NdefMap_t *NdefMap, 563 NFCSTATUS phFriNfc_TopazDynamicMap_ChkNdef( phFriNfc_NdefMap_t *NdefMap) in phFriNfc_TopazDynamicMap_ChkNdef() argument 567 if ( NdefMap != NULL) in phFriNfc_TopazDynamicMap_ChkNdef() 570 NdefMap->PrevOperation = PH_FRINFC_NDEFMAP_CHECK_OPE; in phFriNfc_TopazDynamicMap_ChkNdef() 573 NdefMap->TopazContainer.CRIndex = PH_FRINFC_NDEFMAP_CR_CHK_NDEF; in phFriNfc_TopazDynamicMap_ChkNdef() 574 NdefMap->TopazContainer.Cur_RW_Index = PH_FRINFC_TOPAZ_VAL0; in phFriNfc_TopazDynamicMap_ChkNdef() 575 NdefMap->TopazContainer.CurrentSeg = 0; in phFriNfc_TopazDynamicMap_ChkNdef() 576 NdefMap->TopazContainer.NdefTLVByteAddress = 0; in phFriNfc_TopazDynamicMap_ChkNdef() 577 NdefMap->CardState = PH_NDEFMAP_CARD_STATE_INVALID; in phFriNfc_TopazDynamicMap_ChkNdef() 579 NdefMap->TopazContainer.CurrentBlock = 0; in phFriNfc_TopazDynamicMap_ChkNdef() [all …]
|
D | phFriNfc_TopazMap.h | 238 void phFriNfc_TopazMap_H_Reset( phFriNfc_NdefMap_t *NdefMap); 260 phFriNfc_NdefMap_t *NdefMap); 301 NFCSTATUS phFriNfc_TopazMap_RdNdef( phFriNfc_NdefMap_t *NdefMap, 346 NFCSTATUS phFriNfc_TopazMap_WrNdef( phFriNfc_NdefMap_t *NdefMap, 369 NFCSTATUS phFriNfc_TopazMap_ChkNdef( phFriNfc_NdefMap_t *NdefMap); 371 extern NFCSTATUS phFriNfc_Tpz_H_ChkSpcVer( phFriNfc_NdefMap_t *NdefMap, 520 NFCSTATUS phFriNfc_TopazDynamicMap_RdNdef( phFriNfc_NdefMap_t *NdefMap, 562 NFCSTATUS phFriNfc_TopazDynamicMap_WrNdef( phFriNfc_NdefMap_t *NdefMap, 584 NFCSTATUS phFriNfc_TopazDynamicMap_ChkNdef( phFriNfc_NdefMap_t *NdefMap);
|
D | phFriNfc_MifareStdMap.h | 257 NFCSTATUS phFriNfc_MifareStdMap_H_Reset( phFriNfc_NdefMap_t *NdefMap); 297 NFCSTATUS phFriNfc_MifareStdMap_RdNdef( phFriNfc_NdefMap_t *NdefMap, 341 NFCSTATUS phFriNfc_MifareStdMap_WrNdef( phFriNfc_NdefMap_t *NdefMap, 364 NFCSTATUS phFriNfc_MifareStdMap_ChkNdef(phFriNfc_NdefMap_t *NdefMap); 395 NFCSTATUS phFriNfc_MifareStdMap_ConvertToReadOnly(phFriNfc_NdefMap_t *NdefMap, const uint8_t *…
|
D | phFriNfc_FelicaMap.h | 174 NFCSTATUS phFriNfc_Felica_RdNdef( phFriNfc_NdefMap_t *NdefMap, 216 NFCSTATUS phFriNfc_Felica_WrNdef( phFriNfc_NdefMap_t *NdefMap, 242 NFCSTATUS phFriNfc_Felica_EraseNdef( phFriNfc_NdefMap_t *NdefMap); 262 NFCSTATUS phFriNfc_Felica_ChkNdef( phFriNfc_NdefMap_t *NdefMap);
|
D | phFriNfc_MifareULMap.h | 166 NFCSTATUS phFriNfc_MifareUL_H_Reset( phFriNfc_NdefMap_t *NdefMap); 205 NFCSTATUS phFriNfc_MifareUL_RdNdef( phFriNfc_NdefMap_t *NdefMap, 248 NFCSTATUS phFriNfc_MifareUL_WrNdef( phFriNfc_NdefMap_t *NdefMap, 271 NFCSTATUS phFriNfc_MifareUL_ChkNdef( phFriNfc_NdefMap_t *NdefMap);
|
D | phFriNfc_NdefMap.h | 1014 NFCSTATUS phFriNfc_NdefMap_Reset(phFriNfc_NdefMap_t *NdefMap, 1053 NFCSTATUS phFriNfc_NdefMap_SetCompletionRoutine(phFriNfc_NdefMap_t *NdefMap, 1096 NFCSTATUS phFriNfc_NdefMap_RdNdef(phFriNfc_NdefMap_t *NdefMap, 1142 extern NFCSTATUS phFriNfc_NdefMap_WrNdef(phFriNfc_NdefMap_t *NdefMap, 1170 NFCSTATUS phFriNfc_NdefMap_ChkNdef(phFriNfc_NdefMap_t *NdefMap); 1191 phFriNfc_NdefMap_t *NdefMap); 1218 NFCSTATUS phFriNfc_NdefMap_EraseNdef(phFriNfc_NdefMap_t *NdefMap); 1238 NFCSTATUS phFriNfc_NdefMap_GetContainerSize(const phFriNfc_NdefMap_t *NdefMap,uint32_t *maxSize, ui… 1282 NFCSTATUS phFriNfc_ChkAndParseTLV(phFriNfc_NdefMap_t *NdefMap); 1301 NFCSTATUS phFriNfc_NdefMap_MockupCardSetter(phFriNfc_NdefMap_t *NdefMap, uint8_t *NdefData, uint32_…
|
D | phFriNfc_IntNdefMap.h | 75 NFCSTATUS phFriNfc_NdefMap_CheckSpecVersion(phFriNfc_NdefMap_t *NdefMap, 78 NFCSTATUS phFriNfc_NdefMap_SetCardState(phFriNfc_NdefMap_t *NdefMap,
|
D | phFriNfc_MapTools.h | 89 NFCSTATUS phFriNfc_MapTool_ChkSpcVer( const phFriNfc_NdefMap_t *NdefMap, 92 NFCSTATUS phFriNfc_MapTool_SetCardState(phFriNfc_NdefMap_t *NdefMap,
|