disable debugging by default
[librfid] / include / librfid / rfid_protocol_tcl.h
index f754ad9..535af11 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef _RFID_PROTOCOL_TCL_H
 #define _RFID_PROTOCOL_TCL_H
 
+enum rfid_proto_tcl_opt {
+       RFID_OPT_P_TCL_ATS      =       0x00010001,
+       RFID_OPT_P_TCL_ATS_LEN  =       0x00010002,
+};
+
 #ifdef __LIBRFID__
 
 enum tcl_transport_rate {
@@ -10,7 +15,7 @@ enum tcl_transport_rate {
        TCL_RATE_848    = 0x08,
 };
 
-enum tcl_transport_transcieve_flags {
+enum tcl_transport_transceive_flags {
        TCL_TRANSP_F_TX_CRC     = 0x01, /* transport adds TX CRC */
        TCL_TRANSP_F_RX_CRC     = 0x02, 
 };
@@ -36,7 +41,8 @@ struct tcl_handle {
        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 {
@@ -63,7 +69,7 @@ enum tcl_pcd_state {
        TCL_STATE_DESELECTED,           /* card deselected or HLTA'd */
 };
 
-struct rfid_protocol rfid_protocol_tcl;
+extern const struct rfid_protocol rfid_protocol_tcl;
 
 #endif /* __LIBRFID__ */