* implement rfid_reader_{get,set}opt()
[librfid] / src / rfid_reader_rc632_common.h
1 #ifndef _RDR_RC632_COMMON
2 #define _RDR_RC632_COMMON
3
4 int _rdr_rc632_transceive(struct rfid_reader_handle *rh,
5                           enum rfid_frametype frametype,
6                           const unsigned char *tx_data, unsigned int tx_len,
7                           unsigned char *rx_data, unsigned int *rx_len,
8                           u_int64_t timeout, unsigned int flags);
9 int _rdr_rc632_transceive_sf(struct rfid_reader_handle *rh,
10                              unsigned char cmd, struct iso14443a_atqa *atqa);
11 int _rdr_rc632_transceive_acf(struct rfid_reader_handle *rh,
12                               struct iso14443a_anticol_cmd *cmd,
13                               unsigned int *bit_of_col);
14 int _rdr_rc632_iso15693_transceive_ac(struct rfid_reader_handle *rh,
15                                       const struct iso15693_anticol_cmd *acf,
16                                       unsigned int acf_len,
17                                       struct iso15693_anticol_resp *resp,
18                                       unsigned int *resp_len, char *bit_of_col);
19 int _rdr_rc632_14443a_set_speed(struct rfid_reader_handle *rh, unsigned int tx,
20                                 unsigned int speed);
21 int _rdr_rc632_l2_init(struct rfid_reader_handle *rh, enum rfid_layer2_id l2);
22 int _rdr_rc632_mifare_setkey(struct rfid_reader_handle *rh, const u_int8_t *key);
23 int _rdr_rc632_mifare_auth(struct rfid_reader_handle *rh, u_int8_t cmd, 
24                            u_int32_t serno, u_int8_t block);
25 int _rdr_rc632_getopt(struct rfid_reader_handle *rh, int optname,
26                       void *optval, unsigned int *optlen);
27 int _rdr_rc632_setopt(struct rfid_reader_handle *rh, int optname,
28                       const void *optval, unsigned int optlen);
29
30 #endif