From c203de04bd740e324b06615b98932ac9fa734ed2 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 27 Jan 2008 02:15:48 +0000 Subject: * improve scanning support: ** first try REQA/HLTA/REQA/HLTA until no more tags found ** then power off the field and start from the beginning again * add proper RF field on/off switching support to all readers * reduce timer to actual value, don't multiply by 10 * detect collisions during transceive_sf (ATQA) * make UID length depend on cascade level, not ATQA git-svn-id: https://svn.gnumonks.org/trunk/librfid@2056 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_asic_rc632.h | 3 +-- include/librfid/rfid_reader.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/librfid/rfid_asic_rc632.h b/include/librfid/rfid_asic_rc632.h index 3aebd1f..ccc4f20 100644 --- a/include/librfid/rfid_asic_rc632.h +++ b/include/librfid/rfid_asic_rc632.h @@ -33,8 +33,7 @@ struct rfid_asic_rc632 { struct { int (*power_up)(struct rfid_asic_handle *h); int (*power_down)(struct rfid_asic_handle *h); - int (*turn_on_rf)(struct rfid_asic_handle *h); - int (*turn_off_rf)(struct rfid_asic_handle *h); + int (*rf_power)(struct rfid_asic_handle *h, int on); int (*transceive)(struct rfid_asic_handle *h, enum rfid_frametype, const u_int8_t *tx_buf, diff --git a/include/librfid/rfid_reader.h b/include/librfid/rfid_reader.h index 296c66f..64ad862 100644 --- a/include/librfid/rfid_reader.h +++ b/include/librfid/rfid_reader.h @@ -35,6 +35,7 @@ struct rfid_reader { u_int64_t timeout, unsigned int flags); struct rfid_reader_handle * (*open)(void *data); void (*close)(struct rfid_reader_handle *h); + int (*rf_power)(struct rfid_reader_handle *h, int on); struct rfid_14443a_reader { int (*init)(struct rfid_reader_handle *h); -- cgit v1.2.3