summaryrefslogtreecommitdiff
path: root/firmware/include/librfid/rfid_layer2_iso14443a.h
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-15 20:21:40 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-15 20:21:40 +0000
commit28eb4a57d93f2cf13d3693ce4dba677f22cbf1cc (patch)
tree3cc72ad1aeb7c543f91989d4cb055f06d81cd33f /firmware/include/librfid/rfid_layer2_iso14443a.h
parentb2f42e7acf929490965348e826b5fa86c51515f5 (diff)
- add svn:ignore property to make 'svn st' output more realistic
- remove old copy+paste+edit port of parts of librfid - add ability to directly link librfid.a from mainline librfid - make usb string descriptors optional again (config.h) - fix TC_CDIV to reset correctly on swtrig (For OpenPICC) - temporarily re-implement ep0_send_data() in pcd_enumerate.c - make UDP_PUPv4 switching conditional to PCD - introduce DEBUG_UNBUFFERED define in dbgu.c - fix some signed/unsigned/typecast related compiler warnings - remove dead code from src/os/led.c - implement a 'mdelay' and 'usleep' stub function (FIXME!) - rename rc632_... functions into opcd_rc632_... to avoid confusion - introduce new 'main_librfid' TARGET - make main_{reqa,analog} work with librfid rather than old code - introduce mroe debugging options for FIQ handler code in Cstartup_app - lots of PICC work that doesn't need comments now git-svn-id: https://svn.openpcd.org:2342/trunk@266 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/include/librfid/rfid_layer2_iso14443a.h')
-rw-r--r--firmware/include/librfid/rfid_layer2_iso14443a.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/firmware/include/librfid/rfid_layer2_iso14443a.h b/firmware/include/librfid/rfid_layer2_iso14443a.h
deleted file mode 100644
index e1ecd36..0000000
--- a/firmware/include/librfid/rfid_layer2_iso14443a.h
+++ /dev/null
@@ -1,87 +0,0 @@
-#ifndef _RFID_ISO14443A_H
-#define _RFID_ISO14443A_H
-
-
-enum rfid_14443a_opt {
- RFID_OPT_14443A_SPEED_RX = 0x00000001,
- RFID_OPT_14443A_SPEED_TX = 0x00000002,
-};
-
-enum rfid_14443_opt_speed {
- RFID_14443A_SPEED_106K = 0x01,
- RFID_14443A_SPEED_212K = 0x02,
- RFID_14443A_SPEED_424K = 0x04,
- RFID_14443A_SPEED_848K = 0x08,
-};
-
-#include <sys/types.h>
-
-/* protocol definitions */
-
-/* ISO 14443-3, Chapter 6.3.1 */
-enum iso14443a_sf_cmd {
- ISO14443A_SF_CMD_REQA = 0x26,
- ISO14443A_SF_CMD_WUPA = 0x52,
- ISO14443A_SF_CMD_OPT_TIMESLOT = 0x35, /* Annex C */
- /* 40 to 4f and 78 to 7f: proprietary */
-};
-
-struct iso14443a_atqa {
- u_int8_t bf_anticol:5,
- rfu1:1,
- uid_size:2;
- u_int8_t proprietary:4,
- rfu2:4;
-} __attribute__ ((packed));
-
-#define ISO14443A_HLTA 0x5000
-
-/* ISO 14443-3, Chapter 6.3.2 */
-struct iso14443a_anticol_cmd {
- unsigned char sel_code;
- unsigned char nvb;
- unsigned char uid_bits[5];
-} __attribute__ ((packed));
-
-enum iso14443a_anticol_sel_code {
- ISO14443A_AC_SEL_CODE_CL1 = 0x93,
- ISO14443A_AC_SEL_CODE_CL2 = 0x95,
- ISO14443A_AC_SEL_CODE_CL3 = 0x97,
-};
-
-#define ISO14443A_BITOFCOL_NONE 0xffffffff
-
-struct iso14443a_handle {
- unsigned int state;
- unsigned int level;
- unsigned int tcl_capable;
-};
-
-enum iso14443a_level {
- ISO14443A_LEVEL_NONE,
- ISO14443A_LEVEL_CL1,
- ISO14443A_LEVEL_CL2,
- ISO14443A_LEVEL_CL3,
-};
-
-enum iso14443a_state {
- ISO14443A_STATE_ERROR,
- ISO14443A_STATE_NONE,
- ISO14443A_STATE_REQA_SENT,
- ISO14443A_STATE_ATQA_RCVD,
- ISO14443A_STATE_NO_BITFRAME_ANTICOL,
- ISO14443A_STATE_ANTICOL_RUNNING,
- ISO14443A_STATE_SELECTED,
-};
-
-/* Section 6.1.2 values in usec, rounded up to next usec */
-#define ISO14443A_FDT_ANTICOL_LAST1 92 /* 1236 / fc = 91.15 usec */
-#define ISO14443A_FDT_ANTICOL_LAST0 87 /* 1172 / fc = 86.43 usec */
-
-#define ISO14443_CARRIER_FREQ 13560000
-#define ISO14443A_FDT_OTHER_LAST1(n) (((n*128+84)*1000000)/ISO14443_CARRIER_FREQ)
-
-#include <librfid/rfid_layer2.h>
-struct rfid_layer2 rfid_layer2_iso14443a;
-
-#endif /* _ISO14443A_H */
personal git repositories of Harald Welte. Your mileage may vary