Rename append_iso14443a_crc() to iso14443a_crc_append().
This commit is contained in:
parent
af0a47ad2c
commit
4e5d0766e1
4 changed files with 8 additions and 7 deletions
1
NEWS
1
NEWS
|
@ -55,6 +55,7 @@ API Changes
|
||||||
see API documentation
|
see API documentation
|
||||||
- nfc_target_init() have an additional argument: nfc_target_t to describe
|
- nfc_target_init() have an additional argument: nfc_target_t to describe
|
||||||
the wanted target
|
the wanted target
|
||||||
|
- append_iso14443a_crc() was renamed to iso14443a_crc_append()
|
||||||
- New iso14443a_locate_historical_bytes() to locate historical bytes in ATS
|
- New iso14443a_locate_historical_bytes() to locate historical bytes in ATS
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
//Prepare and send CL1 Select-Command
|
//Prepare and send CL1 Select-Command
|
||||||
memcpy (abtSelectTag + 2, abtRx, 5);
|
memcpy (abtSelectTag + 2, abtRx, 5);
|
||||||
append_iso14443a_crc (abtSelectTag, 7);
|
iso14443a_crc_append (abtSelectTag, 7);
|
||||||
transmit_bytes (abtSelectTag, 9);
|
transmit_bytes (abtSelectTag, 9);
|
||||||
abtSak = abtRx[0];
|
abtSak = abtRx[0];
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ main (int argc, char *argv[])
|
||||||
// Selection
|
// Selection
|
||||||
abtSelectTag[0] = 0x95;
|
abtSelectTag[0] = 0x95;
|
||||||
memcpy (abtSelectTag + 2, abtRx, 5);
|
memcpy (abtSelectTag + 2, abtRx, 5);
|
||||||
append_iso14443a_crc (abtSelectTag, 7);
|
iso14443a_crc_append (abtSelectTag, 7);
|
||||||
transmit_bytes (abtSelectTag, 9);
|
transmit_bytes (abtSelectTag, 9);
|
||||||
abtSak = abtRx[0];
|
abtSak = abtRx[0];
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ main (int argc, char *argv[])
|
||||||
// Prepare and send final Select-Command
|
// Prepare and send final Select-Command
|
||||||
abtSelectTag[0] = 0x97;
|
abtSelectTag[0] = 0x97;
|
||||||
memcpy (abtSelectTag + 2, abtRx, 5);
|
memcpy (abtSelectTag + 2, abtRx, 5);
|
||||||
append_iso14443a_crc (abtSelectTag, 7);
|
iso14443a_crc_append (abtSelectTag, 7);
|
||||||
transmit_bytes (abtSelectTag, 9);
|
transmit_bytes (abtSelectTag, 9);
|
||||||
abtSak = abtRx[0];
|
abtSak = abtRx[0];
|
||||||
}
|
}
|
||||||
|
@ -276,12 +276,12 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
// Request ATS, this only applies to tags that support ISO 14443A-4
|
// Request ATS, this only applies to tags that support ISO 14443A-4
|
||||||
if (abtRx[0] & SAK_FLAG_ATS_SUPPORTED) {
|
if (abtRx[0] & SAK_FLAG_ATS_SUPPORTED) {
|
||||||
append_iso14443a_crc(abtRats, 2);
|
iso14443a_crc_append(abtRats, 2);
|
||||||
transmit_bytes (abtRats, 4);
|
transmit_bytes (abtRats, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Done, halt the tag now
|
// Done, halt the tag now
|
||||||
append_iso14443a_crc(abtHalt, 2);
|
iso14443a_crc_append(abtHalt, 2);
|
||||||
transmit_bytes (abtHalt, 4);
|
transmit_bytes (abtHalt, 4);
|
||||||
|
|
||||||
printf ("\nFound tag with\n UID: ");
|
printf ("\nFound tag with\n UID: ");
|
||||||
|
|
|
@ -106,7 +106,7 @@ extern "C" {
|
||||||
|
|
||||||
/* Misc. functions */
|
/* Misc. functions */
|
||||||
NFC_EXPORT void iso14443a_crc (byte_t * pbtData, size_t szLen, byte_t * pbtCrc);
|
NFC_EXPORT void iso14443a_crc (byte_t * pbtData, size_t szLen, byte_t * pbtCrc);
|
||||||
NFC_EXPORT void append_iso14443a_crc (byte_t * pbtData, size_t szLen);
|
NFC_EXPORT void iso14443a_crc_append (byte_t * pbtData, size_t szLen);
|
||||||
NFC_EXPORT byte_t * iso14443a_locate_historical_bytes (byte_t * pbtAts, size_t szAts, size_t * pszTk);
|
NFC_EXPORT byte_t * iso14443a_locate_historical_bytes (byte_t * pbtAts, size_t szAts, size_t * pszTk);
|
||||||
NFC_EXPORT const char *nfc_version (void);
|
NFC_EXPORT const char *nfc_version (void);
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ iso14443a_crc (byte_t * pbtData, size_t szLen, byte_t * pbtCrc)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
append_iso14443a_crc (byte_t * pbtData, size_t szLen)
|
iso14443a_crc_append (byte_t * pbtData, size_t szLen)
|
||||||
{
|
{
|
||||||
iso14443a_crc (pbtData, szLen, pbtData + szLen);
|
iso14443a_crc (pbtData, szLen, pbtData + szLen);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue