/external/libnfc-nxp/src/ |
D | phFriNfc_DesfireFormat.c | 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() 261 NdefSmtCrdFmt->SendRecvBuf[CmdByte] = PH_FRINFC_DESF_CREATE_AID_CMD; 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() [all …]
|
D | phFriNfc_DesfireMap.c | 148 … if( ( NdefMap->SendRecvBuf[*(NdefMap->SendRecvLength)- 1] == PH_FRINFC_DESF_NATIVE_GETVER_RESP) ) in phFriNfc_Desfire_HGetSWVersion() 172 … if( ( NdefMap->SendRecvBuf[*(NdefMap->SendRecvLength)- 1] == PH_FRINFC_DESF_NATIVE_GETVER_RESP) ) in phFriNfc_Desfire_HGetUIDDetails() 198 if( ( NdefMap->SendRecvBuf[*(NdefMap->SendRecvLength)- 1] == 0xAF) ) in phFriNfc_Desfire_HUpdateVersionDetails() 205 NdefMap->AddInfo.Type4Info.MajorVersion = NdefSmtCrdFmt->SendRecvBuf[3]; in phFriNfc_Desfire_HUpdateVersionDetails() 206 NdefMap->AddInfo.Type4Info.MinorVersion = NdefSmtCrdFmt->SendRecvBuf[4]; in phFriNfc_Desfire_HUpdateVersionDetails() 387 if((NdefMap->SendRecvBuf[BuffIndex] <= 0x03) || in phFriNfc_Desf_HChkAndParseTLV() 388 (NdefMap->SendRecvBuf[BuffIndex] >= 0x06) ) in phFriNfc_Desf_HChkAndParseTLV() 397 ((NdefMap->SendRecvBuf[BuffIndex] == 0x04)? in phFriNfc_Desf_HChkAndParseTLV() 425 NdefMap->SendRecvBuf[0] = 0x00; in phFriNfc_Desfire_HSetGet_NLEN() 426 NdefMap->SendRecvBuf[1] = 0xD6; in phFriNfc_Desfire_HSetGet_NLEN() [all …]
|
D | phFriNfc_FelicaMap.c | 432 (&(NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 475 (&(NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 481 (&( NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 504 …(&(NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_RESP_HEADER_LEN+(NdefMap->ApduBufferSize - NdefMap-… in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 522 (&( NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 557 (&(NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 562 … (&(NdefMap->SendRecvBuf[13+(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 572 (&(NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 593 (&(NdefMap->SendRecvBuf[13])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() 604 … (&(NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_RESP_HEADER_LEN])), in phFriNfc_Felica_HAfterRead_CopyDataToBuff() [all …]
|
D | phFriNfc_MifareULMap.c | 463 NdefMap->SendRecvBuf[index] = NdefMap->MifareULContainer.CurrentBlock; in phFriNfc_MifareUL_ChkNdef() 495 NdefMap->SendRecvBuf, in phFriNfc_MifareUL_ChkNdef() 497 NdefMap->SendRecvBuf, in phFriNfc_MifareUL_ChkNdef() 558 if (((NdefMap->SendRecvBuf[index] & in phFriNfc_MfUL_H_ChkLockBits() 561 (NdefMap->SendRecvBuf[(index + 1)] & MIF_UL_LOCK_BIT_CHECK))) in phFriNfc_MfUL_H_ChkLockBits() 901 if (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_MFUL_VAL0] == 0x0A) in phFriNfc_MifareUL_Process() 941 if (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_MFUL_VAL0] == 0x0A) in phFriNfc_MifareUL_Process() 991 if (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_MFUL_VAL0] == 0x0A) in phFriNfc_MifareUL_Process() 1050 if (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_MFUL_VAL0] == 0x0A) in phFriNfc_MifareUL_Process() 1094 if (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_MFUL_VAL0] == 0x0A) in phFriNfc_MifareUL_Process() [all …]
|
D | phFriNfc_MifareStdMap.c | 673 NdefMap->SendRecvBuf[0] = NdefMap->StdMifareContainer.currentBlock; in phFriNfc_MifareStdMap_ChkNdef() 682 NdefMap->SendRecvBuf, in phFriNfc_MifareStdMap_ChkNdef() 684 NdefMap->SendRecvBuf, in phFriNfc_MifareStdMap_ChkNdef() 1035 NdefMap->SendRecvBuf[i] = NdefMap->SendRecvBuf[i-1]; in phFriNfc_MifareStdMap_Process() 1037 NdefMap->SendRecvBuf[PH_FRINFC_MIFARESTD_VAL0] = in phFriNfc_MifareStdMap_Process() 1308 NdefMap->SendRecvBuf[PH_FRINFC_MIFARESTD_VAL0] = in phFriNfc_MifStd_H_RdABlock() 1324 NdefMap->SendRecvBuf, in phFriNfc_MifStd_H_RdABlock() 1326 NdefMap->SendRecvBuf, in phFriNfc_MifStd_H_RdABlock() 1394 NdefMap->SendRecvBuf[0] = NdefMap->StdMifareContainer.currentBlock; in phFriNfc_MifStd_H_WrABlock() 1401 (void)memcpy(&( NdefMap->SendRecvBuf[Temp16Bytes]), in phFriNfc_MifStd_H_WrABlock() [all …]
|
D | phFriNfc_TopazMap.c | 281 NdefMap->SendRecvBuf[PH_FRINFC_TOPAZ_VAL0] = PH_FRINFC_TOPAZ_CMD_READID; in phFriNfc_TopazMap_ChkNdef() 365 NdefMap->SendRecvBuf[PH_FRINFC_TOPAZ_VAL0] = PH_FRINFC_TOPAZ_CMD_READALL; in phFriNfc_TopazMap_RdNdef() 447 NdefMap->SendRecvBuf[PH_FRINFC_TOPAZ_VAL0] = PH_FRINFC_TOPAZ_CMD_READALL; in phFriNfc_TopazMap_WrNdef() 458 TempByteVal = NdefMap->SendRecvBuf[PH_FRINFC_TOPAZ_VAL1]; in phFriNfc_TopazMap_WrNdef() 526 if((CC_READ_ONLY_VALUE == *psNdefMap->SendRecvBuf) in phFriNfc_TopazMap_Process() 531 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ; in phFriNfc_TopazMap_Process() 573 if((LOCK0_BYTE_VALUE == *psNdefMap->SendRecvBuf) in phFriNfc_TopazMap_Process() 577 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ; in phFriNfc_TopazMap_Process() 604 written_lock_byte = (uint8_t)(*psNdefMap->SendRecvBuf | LOCK1_BYTE_VALUE); in phFriNfc_TopazMap_Process() 619 if((written_lock_byte == *psNdefMap->SendRecvBuf) in phFriNfc_TopazMap_Process() [all …]
|
D | phFriNfc_ISO15693Format.c | 169 *(psNdefSmtCrdFmt->SendRecvBuf + send_index) = (uint8_t)ISO15693_FMT_FLAGS; in phFriNfc_ISO15693_H_FmtReadWrite() 172 *(psNdefSmtCrdFmt->SendRecvBuf + send_index) = (uint8_t)command; in phFriNfc_ISO15693_H_FmtReadWrite() 175 (void)memcpy ((void *)(psNdefSmtCrdFmt->SendRecvBuf + send_index), in phFriNfc_ISO15693_H_FmtReadWrite() 186 *(psNdefSmtCrdFmt->SendRecvBuf + send_index) = (uint8_t) in phFriNfc_ISO15693_H_FmtReadWrite() 192 (void)memcpy ((void *)(psNdefSmtCrdFmt->SendRecvBuf + send_index), in phFriNfc_ISO15693_H_FmtReadWrite() 206 *(psNdefSmtCrdFmt->SendRecvBuf + send_index) = (uint8_t) in phFriNfc_ISO15693_H_FmtReadWrite() 235 psNdefSmtCrdFmt->SendRecvBuf, in phFriNfc_ISO15693_H_FmtReadWrite() 237 psNdefSmtCrdFmt->SendRecvBuf, in phFriNfc_ISO15693_H_FmtReadWrite() 350 (psNdefSmtCrdFmt->SendRecvBuf + ISO15693_EXTRA_RESPONSE_FLAG), in phFriNfc_ISO15693_H_ProFormat() 378 (psNdefSmtCrdFmt->SendRecvBuf[1] != 0x00 || in phFriNfc_ISO15693_H_ProFormat() [all …]
|
D | phFriNfc_DesfireMap.h | 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;\ 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;\
|
D | phFriNfc_MifULFormat.c | 308 (void *)NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_MfUL_Process() 320 (void *)(NdefSmtCrdFmt->SendRecvBuf + i), in phFriNfc_MfUL_Process() 395 NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_MfUL_Process() 418 (void *)NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_MfUL_Process() 1149 NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_MfUL_H_Transceive() 1151 NdefSmtCrdFmt->SendRecvBuf, in phFriNfc_MfUL_H_Transceive() 1169 NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFUL_FMT_VAL_0] = (uint8_t)BlockNo; in phFriNfc_MfUL_H_fillSendBuf() 1182 *NdefSmtCrdFmt->SendRecvBuf = RD_LOCK_OTP_BLOCK_NUMBER; in phFriNfc_MfUL_H_fillSendBuf() 1198 *NdefSmtCrdFmt->SendRecvBuf = in phFriNfc_MfUL_H_fillSendBuf() 1213 *NdefSmtCrdFmt->SendRecvBuf = NdefSmtCrdFmt->AddInfo.Type2Info.CurrentBlock; in phFriNfc_MfUL_H_fillSendBuf() [all …]
|
D | phFriNfc_TopazDynamicMap.c | 598 *NdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_RSEG; in phFriNfc_TopazDynamicMap_ChkNdef() 691 NdefMap->SendRecvBuf[0] = PH_FRINFC_TOPAZ_CMD_READID; in phFriNfc_TopazDynamicMap_RdNdef() 735 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_WRITE_1E; in phFriNfc_TopazDynamicMap_ConvertToReadOnly() 824 *NdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_TopazDynamicMap_WrNdef() 942 (void)memcpy ((void *)lock_bytes_value, (void *)psNdefMap->SendRecvBuf, in phFriNfc_Tpz_H_UpdateAndWriteLockBits() 1036 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_WRITE_E8; in phFriNfc_Tpz_H_UpdateAndWriteLockBits() 1073 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly() 1128 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly() 1154 *psNdefMap->SendRecvBuf = (uint8_t)PH_FRINFC_TOPAZ_CMD_READ8; in phFriNfc_Tpz_H_ProcessReadOnly() 1189 (void *)(psNdefMap->SendRecvBuf + in phFriNfc_Tpz_H_ProcessReadOnly() [all …]
|
D | phFriNfc_MifStdFormat.h | 194 (void)memset(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 208 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 219 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 229 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 241 (void)memset(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 255 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 266 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\ 276 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
|
D | phFriNfc_ISO15693Map.c | 291 p_recv_buf = (psNdefMap->SendRecvBuf + ISO15693_EXTRA_RESP_BYTE); in phFriNfc_ISO15693_H_ProcessWriteNdef() 351 p_recv_buf = (psNdefMap->SendRecvBuf + ISO15693_EXTRA_RESP_BYTE); in phFriNfc_ISO15693_H_ProcessWriteNdef() 474 *(psNdefMap->SendRecvBuf + send_index) = (uint8_t)ISO15693_FLAGS; in phFriNfc_ISO15693_H_ReadWrite() 477 *(psNdefMap->SendRecvBuf + send_index) = (uint8_t)command; in phFriNfc_ISO15693_H_ReadWrite() 480 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_ISO15693_H_ReadWrite() 486 *(psNdefMap->SendRecvBuf + send_index) = (uint8_t) in phFriNfc_ISO15693_H_ReadWrite() 493 (void)memcpy ((void *)(psNdefMap->SendRecvBuf + send_index), in phFriNfc_ISO15693_H_ReadWrite() 504 psNdefMap->SendRecvBuf, in phFriNfc_ISO15693_H_ReadWrite() 506 psNdefMap->SendRecvBuf, in phFriNfc_ISO15693_H_ReadWrite() 535 *(psNdefMap->SendRecvBuf + send_index) = INVENTORY_PAGEREAD_FLAGS; in phFriNfc_ISO15693_H_Inventory_Page_Read() [all …]
|
D | phFriNfc_MifStdFormat.c | 345 NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_0] = (uint8_t)BlockNo; in phFriNfc_MfStd_H_FillSendBuf() 404 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 410 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 416 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 421 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 426 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_11], in phFriNfc_MfStd_H_FillSendBuf() 442 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 465 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 483 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() 489 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1], in phFriNfc_MfStd_H_FillSendBuf() [all …]
|
D | phLibNfc_ndef_raw.c | 650 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf = in phLibNfc_Ndef_Init() 654 if(NULL != gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf) in phLibNfc_Ndef_Init() 656 (void)memset(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf, in phLibNfc_Ndef_Init() 711 if(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf !=NULL) in phLibNfc_Ndef_DeInit() 713 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf); in phLibNfc_Ndef_DeInit() 714 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf=NULL; in phLibNfc_Ndef_DeInit() 800 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf, in phLibNfc_Ndef_CheckNdef() 802 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf, in phLibNfc_Ndef_CheckNdef() 1311 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf, in phLibNfc_RemoteDev_FormatNdef() 1444 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf, in phLibNfc_ConvertToReadOnlyNdef() [all …]
|
D | phFriNfc_IntNdefMap.c | 177 uint8_t T3TVerNo = NdefMap->SendRecvBuf[VersionIndex]; in phFriNfc_NdefMap_CheckSpecVersion()
|
D | phFriNfc_MapTools.c | 138 uint8_t TagVerNo = NdefMap->SendRecvBuf[VersionIndex]; in phFriNfc_MapTool_ChkSpcVer()
|
D | phFriNfc_SmtCrdFmt.h | 338 uint8_t *SendRecvBuf; member
|
D | phLibNfc.c | 577 if(NULL != gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf) in phLibNfc_Mgt_Reset() 579 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf); in phLibNfc_Mgt_Reset() 580 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf = NULL; in phLibNfc_Mgt_Reset()
|
D | phFriNfc_SmtCrdFmt.c | 114 NdefSmtCrdFmt->SendRecvBuf = SendRecvBuffer; in phFriNfc_NdefSmtCrd_Reset()
|
D | phFriNfc_NdefMap.h | 845 uint8_t *SendRecvBuf; member
|
D | phFriNfc_NdefMap.c | 146 NdefMap->SendRecvBuf = ReceiveBuffer; in phFriNfc_NdefMap_Reset()
|