projects
/
librfid
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare RFID compilation in firmware mode
[librfid]
/
include
/
librfid
/
rfid_protocol_tcl.h
diff --git
a/include/librfid/rfid_protocol_tcl.h
b/include/librfid/rfid_protocol_tcl.h
index
180c008
..
2ee1c27
100644
(file)
--- a/
include/librfid/rfid_protocol_tcl.h
+++ b/
include/librfid/rfid_protocol_tcl.h
@@
-36,7
+36,8
@@
struct tcl_handle {
unsigned int toggle; /* send toggle with next frame */
unsigned int ats_len;
unsigned int toggle; /* send toggle with next frame */
unsigned int ats_len;
- unsigned char ats[0];
+ unsigned char ats[256]; /* ATS cannot be bigger than FSD-2 bytes,
+ according to ISO 14443-4 5.2.2 */
};
enum tcl_handle_flags {
};
enum tcl_handle_flags {
@@
-63,7
+64,7
@@
enum tcl_pcd_state {
TCL_STATE_DESELECTED, /* card deselected or HLTA'd */
};
TCL_STATE_DESELECTED, /* card deselected or HLTA'd */
};
-struct rfid_protocol rfid_protocol_tcl;
+
extern const
struct rfid_protocol rfid_protocol_tcl;
#endif /* __LIBRFID__ */
#endif /* __LIBRFID__ */