• Home
  • Raw
  • Download

Lines Matching refs:NdefSmtCrdFmt

194     (void)memset(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
197 NdefSmtCrdFmt->Cmd.MfCmd = ((NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState == \
201 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7; \
208 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
209 NdefSmtCrdFmt->AddInfo.MfStdInfo.NFCForumSect_KeyA,\
211 NdefSmtCrdFmt->Cmd.MfCmd = phHal_eMifareAuthentA;\
212 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7;\
219 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
220 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSect_KeyA,\
222 NdefSmtCrdFmt->Cmd.MfCmd = phHal_eMifareAuthentA;\
223 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7;\
229 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
230 NdefSmtCrdFmt->AddInfo.MfStdInfo.ScrtKeyB,\
232 NdefSmtCrdFmt->Cmd.MfCmd = phHal_eMifareAuthentB;\
233 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7;\
241 (void)memset(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
244 NdefSmtCrdFmt->Cmd.MfCmd = ((NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState == \
248 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7; \
255 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
256 NdefSmtCrdFmt->AddInfo.MfStdInfo.NFCForumSect_KeyA,\
258 NdefSmtCrdFmt->Cmd.MfCmd = phHal_eMifareCmdListMifareAuthentA;\
259 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7;\
266 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
267 NdefSmtCrdFmt->AddInfo.MfStdInfo.MADSect_KeyA,\
269 NdefSmtCrdFmt->Cmd.MfCmd = phHal_eMifareCmdListMifareAuthentA;\
270 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7;\
276 (void)memcpy(&NdefSmtCrdFmt->SendRecvBuf[PH_FRINFC_MFSTD_FMT_VAL_1],\
277 NdefSmtCrdFmt->AddInfo.MfStdInfo.ScrtKeyB,\
279 NdefSmtCrdFmt->Cmd.MfCmd = phHal_eMifareCmdListMifareAuthentB;\
280 NdefSmtCrdFmt->SendLength = PH_FRINFC_MFSTD_FMT_VAL_7;\
288 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock += \
289 ((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock >= 127)?\
294 ((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock >= 128)?\
295 (32 + ((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock - 128)/16)):\
296 (NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock/4))
299 ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD) && \
300 (NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock >= \
302 ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_4K_CRD) && \
303 (NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock >= \
310 switch(NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState)\
314 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = (uint8_t) \
315 ((((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock <= 3) || \
316 ((NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock > 63) && \
317 (NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock < 67))))? \
324 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = \
330 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = \
336 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = \
343 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = \
371 &NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl[index],\
384 phFriNfc_MfStd_H_NdefComplSect(NdefSmtCrdFmt->CardType, \
385 NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl); \
389 phFriNfc_MfStd_H_StrNdefData(NdefSmtCrdFmt); \
390 NdefSmtCrdFmt->AddInfo.MfStdInfo.CurrentBlock = \
392 NdefSmtCrdFmt->AddInfo.MfStdInfo.UpdMADBlk = \
394 NdefSmtCrdFmt->AddInfo.MfStdInfo.AuthState = \
396 NdefSmtCrdFmt->State = PH_FRINFC_MFSTD_FMT_AUTH_SECT; \
397 Result = phFriNfc_MfStd_H_WrRdAuth(NdefSmtCrdFmt); \
415 void phFriNfc_MfStd_Reset(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt);
434 NFCSTATUS phFriNfc_MfStd_Format(phFriNfc_sNdefSmtCrdFmt_t *NdefSmtCrdFmt, const uint8_t *ScrtKeyB);