diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-01-29 16:29:21 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-01-29 16:29:21 +0000 |
commit | da4aa962e17978a70bf1cf4fc3d1b46b620bc3bf (patch) | |
tree | ce482cb98a3318224d0fd40f951688cfd6bf1140 /src/rfid_reader_rc632_common.h | |
parent | 2b0914e033eb2644fe576b7b4c03309830abd2ec (diff) |
* implement rfid_reader_{get,set}opt()
* move get/set environment and get firmware api version to reader_{get,set}opt()
* merge rc632 power_up and power_down functions in new power function
* merge rc632 layer 2 protocol init functions into one
* rename parameters of rfid_layer2_{get,set}opt()
* move rf_power() function of reader to new setopt() interface
* merge reader layer 2 protocol init functiosn into one
* move most of the iso15693 anticol implementation from asic into layer2 code
* make most iso15693 parameters configurable via layer2_{get,set}opt()
* implement AFI for iso15693 inventory request
* introduce new generic 'rc632 asic based reader' functions
* use those functions from openpcd, cm5121 and spidev readers
* use new register initialization script data structure for rc632 init functions
* TODO update
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2064 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src/rfid_reader_rc632_common.h')
-rw-r--r-- | src/rfid_reader_rc632_common.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/rfid_reader_rc632_common.h b/src/rfid_reader_rc632_common.h new file mode 100644 index 0000000..38d195d --- /dev/null +++ b/src/rfid_reader_rc632_common.h @@ -0,0 +1,30 @@ +#ifndef _RDR_RC632_COMMON +#define _RDR_RC632_COMMON + +int _rdr_rc632_transceive(struct rfid_reader_handle *rh, + enum rfid_frametype frametype, + const unsigned char *tx_data, unsigned int tx_len, + unsigned char *rx_data, unsigned int *rx_len, + u_int64_t timeout, unsigned int flags); +int _rdr_rc632_transceive_sf(struct rfid_reader_handle *rh, + unsigned char cmd, struct iso14443a_atqa *atqa); +int _rdr_rc632_transceive_acf(struct rfid_reader_handle *rh, + struct iso14443a_anticol_cmd *cmd, + unsigned int *bit_of_col); +int _rdr_rc632_iso15693_transceive_ac(struct rfid_reader_handle *rh, + const struct iso15693_anticol_cmd *acf, + unsigned int acf_len, + struct iso15693_anticol_resp *resp, + unsigned int *resp_len, char *bit_of_col); +int _rdr_rc632_14443a_set_speed(struct rfid_reader_handle *rh, unsigned int tx, + unsigned int speed); +int _rdr_rc632_l2_init(struct rfid_reader_handle *rh, enum rfid_layer2_id l2); +int _rdr_rc632_mifare_setkey(struct rfid_reader_handle *rh, const u_int8_t *key); +int _rdr_rc632_mifare_auth(struct rfid_reader_handle *rh, u_int8_t cmd, + u_int32_t serno, u_int8_t block); +int _rdr_rc632_getopt(struct rfid_reader_handle *rh, int optname, + void *optval, unsigned int *optlen); +int _rdr_rc632_setopt(struct rfid_reader_handle *rh, int optname, + const void *optval, unsigned int optlen); + +#endif |