mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-21 11:11:49 +00:00
@@ -76,8 +76,8 @@
|
||||
/** @note PN53x's normal frame:
|
||||
*
|
||||
* .-- Start
|
||||
* | .-- Packet lenght
|
||||
* | | .-- Lenght checksum
|
||||
* | .-- Packet length
|
||||
* | | .-- Length checksum
|
||||
* | | | .-- Direction (D4 Host to PN, D5 PN to Host)
|
||||
* | | | | .-- Code
|
||||
* | | | | | .-- Packet checksum
|
||||
@@ -91,8 +91,8 @@
|
||||
*
|
||||
* .-- Start
|
||||
* | .-- Fixed to FF to enable extended frame
|
||||
* | | .-- Packet lenght
|
||||
* | | | .-- Lenght checksum
|
||||
* | | .-- Packet length
|
||||
* | | | .-- Length checksum
|
||||
* | | | | .-- Direction (D4 Host to PN, D5 PN to Host)
|
||||
* | | | | | .-- Code
|
||||
* | | | | | | .-- Packet checksum
|
||||
@@ -103,7 +103,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Start bytes, packet lenght, lenght checksum, direction, packet checksum and postamble are overhead
|
||||
* Start bytes, packet length, length checksum, direction, packet checksum and postamble are overhead
|
||||
*/
|
||||
// The TFI is considered part of the overhead
|
||||
# define PN53x_NORMAL_FRAME__DATA_MAX_LEN 254
|
||||
|
||||
@@ -508,7 +508,7 @@ acr122_usb_send (nfc_device *pnd, const uint8_t *pbtData, const size_t szData, c
|
||||
0x00, // len
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // padding
|
||||
0xff, 0x00, 0x00, 0x00,
|
||||
0x00, // pn532 command lenght
|
||||
0x00, // pn532 command length
|
||||
0xd4, // direction
|
||||
};
|
||||
size_t szFrame = acr122_build_frame (abtFrame, sizeof(abtFrame), pbtData, szData);
|
||||
|
||||
Reference in New Issue
Block a user