Lines Matching refs:ps_iso_15693_con
276 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_H_ProcessWriteNdef() local
305 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_H_ProcessWriteNdef()
306 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_H_ProcessWriteNdef()
363 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_H_ProcessWriteNdef()
364 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_H_ProcessWriteNdef()
382 || (ps_iso_15693_con->current_block == in phFriNfc_ISO15693_H_ProcessWriteNdef()
383 (ps_iso_15693_con->max_data_size / ISO15693_BYTES_PER_BLOCK))) in phFriNfc_ISO15693_H_ProcessWriteNdef()
385 ps_iso_15693_con->current_block = in phFriNfc_ISO15693_H_ProcessWriteNdef()
387 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_H_ProcessWriteNdef()
388 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_H_ProcessWriteNdef()
396 ps_iso_15693_con->current_block = (uint16_t) in phFriNfc_ISO15693_H_ProcessWriteNdef()
397 (ps_iso_15693_con->current_block + 1); in phFriNfc_ISO15693_H_ProcessWriteNdef()
420 ps_iso_15693_con->actual_ndef_size = psNdefMap->ApduBuffIndex; in phFriNfc_ISO15693_H_ProcessWriteNdef()
619 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_H_ProcessReadNdef() local
627 uint8_t *reformatted_buf = (uint8_t*) phOsalNfc_GetMemory(ps_iso_15693_con->max_data_size); in phFriNfc_ISO15693_H_ProcessReadNdef()
629 if (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_IPR) in phFriNfc_ISO15693_H_ProcessReadNdef()
632 reformatted_buf, ps_iso_15693_con->max_data_size); in phFriNfc_ISO15693_H_ProcessReadNdef()
633 p_recv_buf = reformatted_buf + (ps_iso_15693_con->current_block * ISO15693_BYTES_PER_BLOCK); in phFriNfc_ISO15693_H_ProcessReadNdef()
634 … recv_length = reformatted_size - (ps_iso_15693_con->current_block * ISO15693_BYTES_PER_BLOCK); in phFriNfc_ISO15693_H_ProcessReadNdef()
636 if (ps_iso_15693_con->store_length) in phFriNfc_ISO15693_H_ProcessReadNdef()
642 if (ps_iso_15693_con->store_length in phFriNfc_ISO15693_H_ProcessReadNdef()
649 (void *)ps_iso_15693_con->store_read_data, in phFriNfc_ISO15693_H_ProcessReadNdef()
650 ps_iso_15693_con->store_length); in phFriNfc_ISO15693_H_ProcessReadNdef()
653 ps_iso_15693_con->store_length); in phFriNfc_ISO15693_H_ProcessReadNdef()
655 remaining_data_size = ps_iso_15693_con->store_length; in phFriNfc_ISO15693_H_ProcessReadNdef()
657 ps_iso_15693_con->store_length = 0; in phFriNfc_ISO15693_H_ProcessReadNdef()
662 remaining_data_size = (uint16_t)(ps_iso_15693_con->store_length - in phFriNfc_ISO15693_H_ProcessReadNdef()
667 (void *)ps_iso_15693_con->store_read_data, in phFriNfc_ISO15693_H_ProcessReadNdef()
672 (void)memcpy ((void *)ps_iso_15693_con->store_read_data, in phFriNfc_ISO15693_H_ProcessReadNdef()
673 (void *)(ps_iso_15693_con->store_read_data + in phFriNfc_ISO15693_H_ProcessReadNdef()
675 (ps_iso_15693_con->store_length - remaining_data_size)); in phFriNfc_ISO15693_H_ProcessReadNdef()
680 ps_iso_15693_con->store_length = (uint8_t) in phFriNfc_ISO15693_H_ProcessReadNdef()
681 (ps_iso_15693_con->store_length - remaining_data_size); in phFriNfc_ISO15693_H_ProcessReadNdef()
689 remaining_data_size = ps_iso_15693_con->remaining_size_to_read; in phFriNfc_ISO15693_H_ProcessReadNdef()
692 if (ISO15693_GET_VALUE_FIELD_BLOCK_NO(ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_H_ProcessReadNdef()
693 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_H_ProcessReadNdef()
694 ps_iso_15693_con->actual_ndef_size) in phFriNfc_ISO15693_H_ProcessReadNdef()
695 == ps_iso_15693_con->current_block) in phFriNfc_ISO15693_H_ProcessReadNdef()
700 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_H_ProcessReadNdef()
701 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_H_ProcessReadNdef()
702 ps_iso_15693_con->actual_ndef_size); in phFriNfc_ISO15693_H_ProcessReadNdef()
722 (void)memcpy ((void *)ps_iso_15693_con->store_read_data, in phFriNfc_ISO15693_H_ProcessReadNdef()
728 ps_iso_15693_con->store_length = (uint8_t) in phFriNfc_ISO15693_H_ProcessReadNdef()
757 ps_iso_15693_con->remaining_size_to_read = (uint8_t) in phFriNfc_ISO15693_H_ProcessReadNdef()
758 (ps_iso_15693_con->remaining_size_to_read - in phFriNfc_ISO15693_H_ProcessReadNdef()
762 && (0 != ps_iso_15693_con->remaining_size_to_read)) in phFriNfc_ISO15693_H_ProcessReadNdef()
764 ps_iso_15693_con->current_block = (uint16_t) in phFriNfc_ISO15693_H_ProcessReadNdef()
765 (ps_iso_15693_con->current_block + 1); in phFriNfc_ISO15693_H_ProcessReadNdef()
767 if ((ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_MBR) || in phFriNfc_ISO15693_H_ProcessReadNdef()
768 (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_IPR)) { in phFriNfc_ISO15693_H_ProcessReadNdef()
769 result = phFriNfc_ReadRemainingInMultiple(psNdefMap, ps_iso_15693_con->current_block); in phFriNfc_ISO15693_H_ProcessReadNdef()
795 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_H_CheckCCBytes() local
837 ps_iso_15693_con->max_data_size = (uint16_t) in phFriNfc_ISO15693_H_CheckCCBytes()
841 ps_iso_15693_con->read_capabilities = (*(p_recv_buf + recv_index)); in phFriNfc_ISO15693_H_CheckCCBytes()
866 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_H_ProcessCheckNdef() local
877 uint8_t *reformatted_buf = (uint8_t*) phOsalNfc_GetMemory(ps_iso_15693_con->max_data_size); in phFriNfc_ISO15693_H_ProcessCheckNdef()
879 if (0 == ps_iso_15693_con->current_block) in phFriNfc_ISO15693_H_ProcessCheckNdef()
885 else if (1 == ps_iso_15693_con->current_block && in phFriNfc_ISO15693_H_ProcessCheckNdef()
886 (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_IPR)) in phFriNfc_ISO15693_H_ProcessCheckNdef()
890 reformatted_buf, ps_iso_15693_con->max_data_size); in phFriNfc_ISO15693_H_ProcessCheckNdef()
892 p_recv_buf = reformatted_buf + (ps_iso_15693_con->current_block * ISO15693_BYTES_PER_BLOCK); in phFriNfc_ISO15693_H_ProcessCheckNdef()
893 … recv_length = reformatted_size - (ps_iso_15693_con->current_block * ISO15693_BYTES_PER_BLOCK); in phFriNfc_ISO15693_H_ProcessCheckNdef()
902 parse_index = ps_iso_15693_con->ndef_tlv_type_byte; in phFriNfc_ISO15693_H_ProcessCheckNdef()
929 ps_iso_15693_con->ndef_tlv_type_byte = parse_index; in phFriNfc_ISO15693_H_ProcessCheckNdef()
930 ps_iso_15693_con->ndef_tlv_type_blk = in phFriNfc_ISO15693_H_ProcessCheckNdef()
931 ps_iso_15693_con->current_block; in phFriNfc_ISO15693_H_ProcessCheckNdef()
993 ps_iso_15693_con->actual_ndef_size = in phFriNfc_ISO15693_H_ProcessCheckNdef()
1006 ps_iso_15693_con->actual_ndef_size = (uint16_t) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1017 ps_iso_15693_con->actual_ndef_size = (uint16_t) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1018 (ps_iso_15693_con->actual_ndef_size | in phFriNfc_ISO15693_H_ProcessCheckNdef()
1035 && (ISO15693_GET_REMAINING_SIZE(ps_iso_15693_con->max_data_size, in phFriNfc_ISO15693_H_ProcessCheckNdef()
1036 ps_iso_15693_con->current_block, parse_index) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1037 <= ps_iso_15693_con->actual_ndef_size)) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1051 ((ps_iso_15693_con->current_block * ISO15693_BYTES_PER_BLOCK) + in phFriNfc_ISO15693_H_ProcessCheckNdef()
1052 parse_index + ps_iso_15693_con->actual_ndef_size); in phFriNfc_ISO15693_H_ProcessCheckNdef()
1054 ps_iso_15693_con->ndef_tlv_type_byte = (uint8_t)(prop_byte_addr % in phFriNfc_ISO15693_H_ProcessCheckNdef()
1056 ps_iso_15693_con->ndef_tlv_type_blk = (uint16_t)(prop_byte_addr / in phFriNfc_ISO15693_H_ProcessCheckNdef()
1058 if (parse_index + ps_iso_15693_con->actual_ndef_size >= in phFriNfc_ISO15693_H_ProcessCheckNdef()
1066 ps_iso_15693_con->actual_ndef_size); in phFriNfc_ISO15693_H_ProcessCheckNdef()
1078 if ((ps_iso_15693_con->actual_ndef_size - prop_ndef_index) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1084 else if ((ps_iso_15693_con->actual_ndef_size - prop_ndef_index) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1094 (ps_iso_15693_con->actual_ndef_size - in phFriNfc_ISO15693_H_ProcessCheckNdef()
1116 ps_iso_15693_con->actual_ndef_size = 0; in phFriNfc_ISO15693_H_ProcessCheckNdef()
1138 ps_iso_15693_con->actual_ndef_size = in phFriNfc_ISO15693_H_ProcessCheckNdef()
1152 ps_iso_15693_con->actual_ndef_size = (uint16_t) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1163 ps_iso_15693_con->actual_ndef_size = (uint16_t) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1164 (ps_iso_15693_con->actual_ndef_size | in phFriNfc_ISO15693_H_ProcessCheckNdef()
1181 && (ISO15693_GET_REMAINING_SIZE(ps_iso_15693_con->max_data_size, in phFriNfc_ISO15693_H_ProcessCheckNdef()
1187 ps_iso_15693_con->current_block : in phFriNfc_ISO15693_H_ProcessCheckNdef()
1188 ps_iso_15693_con->current_block + 1), ((parse_index + 1) % in phFriNfc_ISO15693_H_ProcessCheckNdef()
1190 < ps_iso_15693_con->actual_ndef_size)) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1203 ((ps_iso_15693_con->actual_ndef_size) ? in phFriNfc_ISO15693_H_ProcessCheckNdef()
1238 ps_iso_15693_con->current_block = (uint16_t) in phFriNfc_ISO15693_H_ProcessCheckNdef()
1239 (ps_iso_15693_con->current_block + 1); in phFriNfc_ISO15693_H_ProcessCheckNdef()
1244 ps_iso_15693_con->current_block = ps_iso_15693_con->ndef_tlv_type_blk; in phFriNfc_ISO15693_H_ProcessCheckNdef()
1247 …uint32_t remaining_size = ISO15693_GET_REMAINING_SIZE(ps_iso_15693_con->max_data_size, in phFriNfc_ISO15693_H_ProcessCheckNdef()
1248 ps_iso_15693_con->current_block, 0); in phFriNfc_ISO15693_H_ProcessCheckNdef()
1251 if ((ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_MBR) || in phFriNfc_ISO15693_H_ProcessCheckNdef()
1252 (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_IPR)) { in phFriNfc_ISO15693_H_ProcessCheckNdef()
1253 … result = phFriNfc_ReadRemainingInMultiple(psNdefMap, ps_iso_15693_con->current_block); in phFriNfc_ISO15693_H_ProcessCheckNdef()
1308 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_H_ProcessReadOnly() local
1311 ps_iso_15693_con->ndef_seq; in phFriNfc_ISO15693_H_ProcessReadOnly()
1362 if (ps_iso_15693_con->current_block == in phFriNfc_ISO15693_H_ProcessReadOnly()
1363 ((ps_iso_15693_con->max_data_size / ISO15693_BYTES_PER_BLOCK) - in phFriNfc_ISO15693_H_ProcessReadOnly()
1371 ps_iso_15693_con->current_block = (uint16_t) in phFriNfc_ISO15693_H_ProcessReadOnly()
1372 (ps_iso_15693_con->current_block + 1); in phFriNfc_ISO15693_H_ProcessReadOnly()
1386 ps_iso_15693_con->ndef_seq = (uint8_t)e_ro_ndef_seq; in phFriNfc_ISO15693_H_ProcessReadOnly()
1534 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_RdNdef() local
1560 if ((!ps_iso_15693_con->remaining_size_to_read) in phFriNfc_ISO15693_RdNdef()
1568 else if (0 == ps_iso_15693_con->actual_ndef_size) in phFriNfc_ISO15693_RdNdef()
1584 ps_iso_15693_con->remaining_size_to_read = in phFriNfc_ISO15693_RdNdef()
1585 ps_iso_15693_con->actual_ndef_size; in phFriNfc_ISO15693_RdNdef()
1586 ps_iso_15693_con->current_block = in phFriNfc_ISO15693_RdNdef()
1588 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_RdNdef()
1589 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_RdNdef()
1590 ps_iso_15693_con->actual_ndef_size); in phFriNfc_ISO15693_RdNdef()
1593 if ((ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_MBR) || in phFriNfc_ISO15693_RdNdef()
1594 (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_IPR)) { in phFriNfc_ISO15693_RdNdef()
1595 result = phFriNfc_ReadRemainingInMultiple(psNdefMap, ps_iso_15693_con->current_block); in phFriNfc_ISO15693_RdNdef()
1604 if (ps_iso_15693_con->store_length > 0) in phFriNfc_ISO15693_RdNdef()
1612 ps_iso_15693_con->current_block = (uint16_t) in phFriNfc_ISO15693_RdNdef()
1613 (ps_iso_15693_con->current_block + 1); in phFriNfc_ISO15693_RdNdef()
1629 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = &(psNdefMap->ISO15693Container); in phFriNfc_ReadRemainingInMultiple() local
1631 …uint32_t remaining_size = ISO15693_GET_REMAINING_SIZE(ps_iso_15693_con->max_data_size, in phFriNfc_ReadRemainingInMultiple()
1634 if (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_MBR) { in phFriNfc_ReadRemainingInMultiple()
1640 } else if (ps_iso_15693_con->read_capabilities & ISO15693_CC_USE_IPR) { in phFriNfc_ReadRemainingInMultiple()
1663 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_WrNdef() local
1691 ps_iso_15693_con->current_block = in phFriNfc_ISO15693_WrNdef()
1693 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_WrNdef()
1694 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_WrNdef()
1698 ps_iso_15693_con->ndef_tlv_type_blk, in phFriNfc_ISO15693_WrNdef()
1699 ps_iso_15693_con->ndef_tlv_type_byte, in phFriNfc_ISO15693_WrNdef()
1706 ps_iso_15693_con->ndef_seq = (uint8_t)ISO15693_RD_BEFORE_WR_NDEF_L_0; in phFriNfc_ISO15693_WrNdef()
1714 ps_iso_15693_con->ndef_seq = (uint8_t)ISO15693_WRITE_DATA; in phFriNfc_ISO15693_WrNdef()
1744 phFriNfc_ISO15693Cont_t *ps_iso_15693_con = in phFriNfc_ISO15693_ConvertToReadOnly() local
1749 ps_iso_15693_con->ndef_seq = (uint8_t)ISO15693_RD_BEFORE_WR_CC; in phFriNfc_ISO15693_ConvertToReadOnly()
1750 ps_iso_15693_con->current_block = 0; in phFriNfc_ISO15693_ConvertToReadOnly()