Lines Matching refs:psNdefMap
217 phFriNfc_NdefMap_t *psNdefMap,
506 phFriNfc_NdefMap_t *psNdefMap = NULL; in phFriNfc_TopazMap_Process() local
517 psNdefMap = (phFriNfc_NdefMap_t *)Context; in phFriNfc_TopazMap_Process()
521 switch (psNdefMap->State) in phFriNfc_TopazMap_Process()
526 if((CC_READ_ONLY_VALUE == *psNdefMap->SendRecvBuf) in phFriNfc_TopazMap_Process()
527 && (PH_FRINFC_TOPAZ_VAL1 == *psNdefMap->SendRecvLength)) in phFriNfc_TopazMap_Process()
531 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ; in phFriNfc_TopazMap_Process()
534 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read1; in phFriNfc_TopazMap_Process()
536 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead1; in phFriNfc_TopazMap_Process()
539 Status = phFriNfc_Tpz_H_RdBytes (psNdefMap, LOCK_BLOCK_NUMBER, in phFriNfc_TopazMap_Process()
544 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_RD_LOCK0_BYTE; in phFriNfc_TopazMap_Process()
557 if (PH_FRINFC_TOPAZ_VAL1 == *psNdefMap->SendRecvLength) in phFriNfc_TopazMap_Process()
559 Status = phFriNfc_Tpz_H_WrAByte (psNdefMap, LOCK_BLOCK_NUMBER, in phFriNfc_TopazMap_Process()
565 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WR_LOCK0_BYTE; in phFriNfc_TopazMap_Process()
573 if((LOCK0_BYTE_VALUE == *psNdefMap->SendRecvBuf) in phFriNfc_TopazMap_Process()
574 && (PH_FRINFC_TOPAZ_VAL1 == *psNdefMap->SendRecvLength)) in phFriNfc_TopazMap_Process()
577 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ; in phFriNfc_TopazMap_Process()
580 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read1; in phFriNfc_TopazMap_Process()
582 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead1; in phFriNfc_TopazMap_Process()
585 Status = phFriNfc_Tpz_H_RdBytes (psNdefMap, LOCK_BLOCK_NUMBER, in phFriNfc_TopazMap_Process()
590 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_RD_LOCK1_BYTE; in phFriNfc_TopazMap_Process()
602 if (PH_FRINFC_TOPAZ_VAL1 == *psNdefMap->SendRecvLength) in phFriNfc_TopazMap_Process()
604 written_lock_byte = (uint8_t)(*psNdefMap->SendRecvBuf | LOCK1_BYTE_VALUE); in phFriNfc_TopazMap_Process()
605 Status = phFriNfc_Tpz_H_WrAByte (psNdefMap, LOCK_BLOCK_NUMBER, in phFriNfc_TopazMap_Process()
611 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_WR_LOCK1_BYTE; in phFriNfc_TopazMap_Process()
619 if((written_lock_byte == *psNdefMap->SendRecvBuf) in phFriNfc_TopazMap_Process()
620 && (PH_FRINFC_TOPAZ_VAL1 == *psNdefMap->SendRecvLength)) in phFriNfc_TopazMap_Process()
635 Status = phFriNfc_Tpz_H_ProWrUsrData (psNdefMap); in phFriNfc_TopazMap_Process()
641 Status = phFriNfc_Tpz_H_ProReadID (psNdefMap); in phFriNfc_TopazMap_Process()
647 Status = phFriNfc_Tpz_H_ProReadAll (psNdefMap); in phFriNfc_TopazMap_Process()
653 Status = phFriNfc_Tpz_H_ProWrNMN (psNdefMap); in phFriNfc_TopazMap_Process()
659 Status = phFriNfc_Tpz_H_ProWrTLV (psNdefMap); in phFriNfc_TopazMap_Process()
665 Status = phFriNfc_Tpz_H_ProCCTLV (psNdefMap); in phFriNfc_TopazMap_Process()
673 Status = phFriNfc_Tpz_H_CheckWrittenData (psNdefMap, in phFriNfc_TopazMap_Process()
699 rf_error_state = psNdefMap->State; in phFriNfc_TopazMap_Process()
703 *psNdefMap->SendRecvBuf = PH_FRINFC_TOPAZ_CMD_READ; in phFriNfc_TopazMap_Process()
709 psNdefMap->Cmd.JewelCmd = phHal_eJewel_Read1; in phFriNfc_TopazMap_Process()
713 psNdefMap->Cmd.JewelCmd = phHal_eJewelCmdListJewelRead1; in phFriNfc_TopazMap_Process()
720 psNdefMap->State = PH_FRINFC_TOPAZ_STATE_RF_ERROR_READ; in phFriNfc_TopazMap_Process()
736 block_number = (uint8_t)(((psNdefMap->TLVStruct.NdefTLVByte + in phFriNfc_TopazMap_Process()
739 (psNdefMap->TLVStruct.NdefTLVBlock + in phFriNfc_TopazMap_Process()
741 psNdefMap->TLVStruct.NdefTLVBlock); in phFriNfc_TopazMap_Process()
743 byte_number = (uint8_t)((psNdefMap->TLVStruct.NdefTLVByte + in phFriNfc_TopazMap_Process()
751 switch (psNdefMap->TopazContainer.InternalState) in phFriNfc_TopazMap_Process()
788 block_number = psNdefMap->TLVStruct.NdefTLVBlock; in phFriNfc_TopazMap_Process()
789 byte_number = (uint8_t)psNdefMap->TLVStruct.NdefTLVByte; in phFriNfc_TopazMap_Process()
805 block_number = psNdefMap->TopazContainer.CurrentBlock; in phFriNfc_TopazMap_Process()
806 byte_number = psNdefMap->TopazContainer.ByteNumber; in phFriNfc_TopazMap_Process()
814 psNdefMap->State = rf_error_state; in phFriNfc_TopazMap_Process()
824 if (PH_FRINFC_TOPAZ_STATE_RF_ERROR_READ == psNdefMap->State) in phFriNfc_TopazMap_Process()
827 Status = phFriNfc_Tpz_H_RdBytes (psNdefMap, block_number, in phFriNfc_TopazMap_Process()
838 phFriNfc_Tpz_H_Complete(psNdefMap, Status); in phFriNfc_TopazMap_Process()
848 phFriNfc_NdefMap_t *psNdefMap, in phFriNfc_Tpz_H_CheckWrittenData() argument
857 result = phFriNfc_Tpz_H_ProWrUsrData (psNdefMap); in phFriNfc_Tpz_H_CheckWrittenData()
863 result = phFriNfc_Tpz_H_ProWrNMN (psNdefMap); in phFriNfc_Tpz_H_CheckWrittenData()
869 result = phFriNfc_Tpz_H_ProWrTLV (psNdefMap); in phFriNfc_Tpz_H_CheckWrittenData()
875 result = phFriNfc_Tpz_H_ProCCTLV (psNdefMap); in phFriNfc_Tpz_H_CheckWrittenData()