Lines Matching refs:psTransceiveInfo
59 phHal_sTransceiveInfo_t *psTransceiveInfo,
64 phHal_sTransceiveInfo_t *psTransceiveInfo,
250 phHal_sTransceiveInfo_t *psTransceiveInfo, in phHal4Nfc_Iso_3A_Transceive() argument
258 = (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_Iso_3A_Transceive()
260 if (psTransceiveInfo->sSendData.buffer[0] != phHal_eMifareWrite4) in phHal4Nfc_Iso_3A_Transceive()
265 if ((psTransceiveInfo->sSendData.buffer[1] == PH_HAL4NFC_SEL_SECTOR1_BYTE0) && in phHal4Nfc_Iso_3A_Transceive()
266 (psTransceiveInfo->sSendData.buffer[2] == PH_HAL4NFC_SEL_SECTOR1_BYTE1)) in phHal4Nfc_Iso_3A_Transceive()
270 for (i = 1; i < psTransceiveInfo->sSendData.length; i++) in phHal4Nfc_Iso_3A_Transceive()
272 psTransceiveInfo->sSendData.buffer[i - 1] = in phHal4Nfc_Iso_3A_Transceive()
273 psTransceiveInfo->sSendData.buffer[i]; in phHal4Nfc_Iso_3A_Transceive()
276 psTransceiveInfo->sSendData.length--; in phHal4Nfc_Iso_3A_Transceive()
286 if ((psTransceiveInfo->sSendData.buffer[1] < PH_HAL4NFC_SEL_SECTOR2_BYTE0) && in phHal4Nfc_Iso_3A_Transceive()
287 (psTransceiveInfo->sSendData.buffer[2] == PH_HAL4NFC_SEL_SECTOR2_BYTE_RESERVED) && in phHal4Nfc_Iso_3A_Transceive()
288 (psTransceiveInfo->sSendData.buffer[3] == PH_HAL4NFC_SEL_SECTOR2_BYTE_RESERVED) && in phHal4Nfc_Iso_3A_Transceive()
289 (psTransceiveInfo->sSendData.buffer[4] == PH_HAL4NFC_SEL_SECTOR2_BYTE_RESERVED)) in phHal4Nfc_Iso_3A_Transceive()
293 for (i = 1; i < psTransceiveInfo->sSendData.length; i++) in phHal4Nfc_Iso_3A_Transceive()
295 psTransceiveInfo->sSendData.buffer[i - 1] = in phHal4Nfc_Iso_3A_Transceive()
296 psTransceiveInfo->sSendData.buffer[i]; in phHal4Nfc_Iso_3A_Transceive()
299 psTransceiveInfo->sSendData.length--; in phHal4Nfc_Iso_3A_Transceive()
316 if (psTransceiveInfo->cmd.MfCmd == phHal_eMifareRaw) in phHal4Nfc_Iso_3A_Transceive()
318 psTransceiveInfo->cmd.MfCmd = in phHal4Nfc_Iso_3A_Transceive()
319 (phHal_eMifareCmdList_t)psTransceiveInfo->sSendData.buffer[0]; in phHal4Nfc_Iso_3A_Transceive()
322 (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_Iso_3A_Transceive()
325 psTransceiveInfo->addr = in phHal4Nfc_Iso_3A_Transceive()
326 psTransceiveInfo->sSendData.buffer[1]; in phHal4Nfc_Iso_3A_Transceive()
328 for (counter = 2; counter < psTransceiveInfo->sSendData.length; in phHal4Nfc_Iso_3A_Transceive()
331 psTransceiveInfo->sSendData.buffer[counter - 2] = in phHal4Nfc_Iso_3A_Transceive()
332 psTransceiveInfo->sSendData.buffer[counter]; in phHal4Nfc_Iso_3A_Transceive()
335 psTransceiveInfo->sSendData.length = in phHal4Nfc_Iso_3A_Transceive()
336 psTransceiveInfo->sSendData.length - 4; in phHal4Nfc_Iso_3A_Transceive()
341 = (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_Iso_3A_Transceive()
349 phHal_sTransceiveInfo_t *psTransceiveInfo, in phHal4Nfc_MifareTransceive() argument
357 phHal_eMifareWrite4 != psTransceiveInfo->sSendData.buffer[0] in phHal4Nfc_MifareTransceive()
366 = (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_MifareTransceive()
372 if (psTransceiveInfo->cmd.MfCmd == phHal_eMifareRaw) in phHal4Nfc_MifareTransceive()
374 psTransceiveInfo->cmd.MfCmd = in phHal4Nfc_MifareTransceive()
375 (phHal_eMifareCmdList_t)psTransceiveInfo->sSendData.buffer[0]; in phHal4Nfc_MifareTransceive()
378 (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_MifareTransceive()
381 psTransceiveInfo->addr = in phHal4Nfc_MifareTransceive()
382 psTransceiveInfo->sSendData.buffer[1]; in phHal4Nfc_MifareTransceive()
384 for (counter = 2; counter < psTransceiveInfo->sSendData.length; in phHal4Nfc_MifareTransceive()
387 psTransceiveInfo->sSendData.buffer[counter - 2] = in phHal4Nfc_MifareTransceive()
388 psTransceiveInfo->sSendData.buffer[counter]; in phHal4Nfc_MifareTransceive()
391 psTransceiveInfo->sSendData.length = in phHal4Nfc_MifareTransceive()
392 psTransceiveInfo->sSendData.length - 4; in phHal4Nfc_MifareTransceive()
398 = (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_MifareTransceive()
408 phHal_sTransceiveInfo_t *psTransceiveInfo, in phHal4Nfc_Transceive() argument
421 || (NULL == psTransceiveInfo) in phHal4Nfc_Transceive()
422 || (NULL == psTransceiveInfo->sRecvData.buffer) in phHal4Nfc_Transceive()
423 || (NULL == psTransceiveInfo->sSendData.buffer) in phHal4Nfc_Transceive()
430 else if(PH_HAL4NFC_MAX_TRCV_LEN < psTransceiveInfo->sSendData.length) in phHal4Nfc_Transceive()
492 psTransceiveInfo, in phHal4Nfc_Transceive()
499 psTransceiveInfo, in phHal4Nfc_Transceive()
507 = (uint8_t)psTransceiveInfo->cmd.MfCmd; in phHal4Nfc_Transceive()
515 = (uint8_t)psTransceiveInfo->cmd.Iso144434Cmd; in phHal4Nfc_Transceive()
521 = (uint8_t)psTransceiveInfo->cmd.Iso15693Cmd; in phHal4Nfc_Transceive()
527 = &(psTransceiveInfo->sSendData); in phHal4Nfc_Transceive()
529 &(psTransceiveInfo->sRecvData); in phHal4Nfc_Transceive()
536 = (uint8_t)psTransceiveInfo->cmd.FelCmd; in phHal4Nfc_Transceive()
542 = (uint8_t)psTransceiveInfo->cmd.JewelCmd; in phHal4Nfc_Transceive()
567 >= psTransceiveInfo->sSendData.length) in phHal4Nfc_Transceive()
572 = (uint8_t)psTransceiveInfo->sSendData.length; in phHal4Nfc_Transceive()
574 = psTransceiveInfo->sSendData.buffer; in phHal4Nfc_Transceive()
629 else if(psTransceiveInfo->sSendData.length > PH_HAL4NFC_CMD_LENGTH) in phHal4Nfc_Transceive()
633 else if((psTransceiveInfo->sSendData.length == 0) in phHal4Nfc_Transceive()
638 = &(psTransceiveInfo->sRecvData); in phHal4Nfc_Transceive()
682 = psTransceiveInfo->addr; in phHal4Nfc_Transceive()
684 = (uint16_t)psTransceiveInfo->sSendData.length; in phHal4Nfc_Transceive()
686 = psTransceiveInfo->sSendData.buffer; in phHal4Nfc_Transceive()
688 = &(psTransceiveInfo->sRecvData); in phHal4Nfc_Transceive()