summaryrefslogtreecommitdiff
path: root/include/rfid/rfid_layer2_iso15693.h
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-06-14 12:41:42 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-06-14 12:41:42 +0000
commit3897fabc5c94f7041c95a13ad04d2e32c944c1f1 (patch)
tree300ff662f5ed8c109c53c0811fdcfe8164dc97d5 /include/rfid/rfid_layer2_iso15693.h
parent2f60f1dc09a5a10c2f198b810f8bd664d4749b57 (diff)
- start 15693 implementation
- build a real library (librfid.a) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1215 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include/rfid/rfid_layer2_iso15693.h')
-rw-r--r--include/rfid/rfid_layer2_iso15693.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/rfid/rfid_layer2_iso15693.h b/include/rfid/rfid_layer2_iso15693.h
new file mode 100644
index 0000000..b418ccd
--- /dev/null
+++ b/include/rfid/rfid_layer2_iso15693.h
@@ -0,0 +1,48 @@
+#ifndef _RFID_ISO15693_H
+#define _RFID_ISO15693_H
+
+#include <sys/types.h>
+
+/* protocol definitions */
+
+struct iso15693_handle;
+
+struct iso15693_transport {
+ unsigned char *name;
+
+ struct {
+ int (*init)(struct iso15693_handle *handle);
+ int (*fini)(struct iso15693_handle *handle);
+
+#if 0
+ int (*transcieve_sf)(struct iso14443a_handle *handle,
+ unsigned char cmd,
+ struct iso14443a_atqa *atqa);
+ int (*transcieve_acf)(struct iso14443a_handle *handle,
+ struct iso14443a_anticol_cmd *acf,
+ unsigned int *bit_of_col);
+#endif
+ int (*transcieve)(struct iso15693_handle *handle,
+ const unsigned char *tx_buf,
+ unsigned int tx_len,
+ unsigned char *rx_buf,
+ unsigned int *rx_len);
+ } fn;
+
+ union {
+ } priv;
+};
+
+struct iso15693_handle {
+ unsigned int state;
+};
+
+enum iso15693_state {
+ ISO15693_STATE_ERROR,
+ ISO15693_STATE_NONE,
+};
+
+#include <rfid/rfid_layer2.h>
+extern struct rfid_layer2 rfid_layer2_iso15693;
+
+#endif /* _ISO15693_H */
personal git repositories of Harald Welte. Your mileage may vary