From 7600eb5ebbb8ac0f7532e7e7ae6cb5d4dc29d30b Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 8 Nov 2005 10:34:18 +0000 Subject: - better layering abstraciton - differentiate between library internal definitions and public ones - implement getopt/setopt like get/setsockopt - offer speed changing controls git-svn-id: https://svn.gnumonks.org/trunk/librfid@1662 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/rfid/rfid_layer2_iso14443a.h | 42 ++++++++++++++---------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'include/rfid/rfid_layer2_iso14443a.h') diff --git a/include/rfid/rfid_layer2_iso14443a.h b/include/rfid/rfid_layer2_iso14443a.h index 400f951..bd078ad 100644 --- a/include/rfid/rfid_layer2_iso14443a.h +++ b/include/rfid/rfid_layer2_iso14443a.h @@ -1,6 +1,19 @@ #ifndef _RFID_ISO14443A_H #define _RFID_ISO14443A_H +enum rfid_14443a_opt { + RFID_OPT_14443A_SPEED = 0x00000001, +}; + +enum rfid_14443_opt_speed { + RFID_14443A_SPEED_106K, + RFID_14443A_SPEED_212K, + RFID_14443A_SPEED_424K, + RFID_14443A_SPEED_848K, +}; + +#ifdef __LIBRFID__ + #include /* protocol definitions */ @@ -38,32 +51,6 @@ enum iso14443a_anticol_sel_code { #define ISO14443A_BITOFCOL_NONE 0xffffffff -struct iso14443a_handle; - -struct iso14443a_transport { - unsigned char *name; - - struct { - int (*init)(struct iso14443a_handle *handle); - int (*fini)(struct iso14443a_handle *handle); - - 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); - int (*transcieve)(struct iso14443a_handle *handle, - const unsigned char *tx_buf, - unsigned int tx_len, - unsigned char *rx_buf, - unsigned int *rx_len); - } fn; - - union { - } priv; -}; - struct iso14443a_handle { unsigned int state; unsigned int level; @@ -90,4 +77,7 @@ enum iso14443a_state { #include struct rfid_layer2 rfid_layer2_iso14443a; +#endif /* __LIBRFID__ */ + + #endif /* _ISO14443A_H */ -- cgit v1.2.3