summaryrefslogtreecommitdiff
path: root/firmware/include/openpicc.h
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-12 17:35:30 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-12 17:35:30 +0000
commitd256545b2fd62d78910efcc6273c3b70abd3aa13 (patch)
treea05e17ec752cfbcc0b79fdbfba81fb949545a112 /firmware/include/openpicc.h
parent04e0441914eeb25e042189679b55c9577fc96d2a (diff)
move to new directory
git-svn-id: https://svn.openpcd.org:2342/trunk@191 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/include/openpicc.h')
-rw-r--r--firmware/include/openpicc.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/include/openpicc.h b/firmware/include/openpicc.h
new file mode 100644
index 0000000..2a9f1bc
--- /dev/null
+++ b/firmware/include/openpicc.h
@@ -0,0 +1,31 @@
+#ifndef _OPENPICC_H
+#define _OPENPICC_H
+
+/* OpenPICC Register definition
+ * (C) 2006 by Harald Welte <hwelte@hmw-consulting.de>
+ */
+
+enum openpicc_register {
+ OPICC_REG_MODE, /* operational mode */
+ OPICC_REG_ISO14443A_FDT_0, /* FDT (after 0) in carrier cycles */
+ OPICC_REG_ISO14443A_FDT_1, /* FDT (after 1) in carrier cycles */
+ OPICC_REG_BITCLK_PHASE_CORR, /* signed 8bit phase correction */
+ OPICC_REG_SPEED_RX,
+ OPICC_REG_SPEED_TX,
+ OPICC_REG_UID_PUPI, /* UID (14443A) / PUPI (14443B) */
+};
+
+enum openpicc_reg_mode {
+ OPICC_MODE_14443A,
+ OPICC_MODE_14443B,
+ OPICC_MODE_LOWLEVEL, /* low-level bit-transceive mode TBD */
+};
+
+enum openpicc_reg_speed {
+ OPICC_SPEED_14443_106K,
+ OPICC_SPEED_14443_212K,
+ OPICC_SPEED_14443_424K,
+ OPICC_SPEED_14443_848K,
+};
+
+#endif /* _OPENPICC_H */
personal git repositories of Harald Welte. Your mileage may vary