basic functions added, problem: altsetting ...
[rfid/librfid.git] / gemtag / gemtag.h
1 /*
2  * (C) 2006 by Frank Zirkelbach <hackbard@hackdaworld.org>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License version 2 
6  *  as published by the Free Software Foundation
7  *
8  *  This program is distributed in the hope that it will be useful,
9  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  *  GNU General Public License for more details.
12  *
13  *  You should have received a copy of the GNU General Public License
14  *  along with this program; if not, write to the Free Software
15  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16  */
17
18 #ifndef _GEMTAG_H
19 #define _GEMTAG_H
20
21 #define USB_VENDOR_GEMTAG       0x1394
22 #define USB_DEVICE_X501         0x0501
23
24 struct gemtag_handle {
25         struct usb_dev_handle *handle;
26         unsigned char seq;
27         unsigned char capabilities;
28         unsigned char snr[4];
29 };
30
31 #define GEMTAG_CAP_CRC 0x01
32
33 struct gemtag_cmd_hdr {
34         unsigned char start;
35         unsigned char seq;
36         unsigned char cmd;
37         u_int16_t len;
38 } __attribute__ ((packed));
39
40 #define GEMTAG_CMD_GET_FW_VERSION       0x63
41 #define GEMTAG_CMD_GET_SERIAL_NUMBER    0x22
42 #define GEMTAG_CMD_GET_RIC_VERSION      0x64
43 #define GEMTAG_CMD_PCD_SET_TMO          0x27
44 #define GEMTAG_CMD_SET_CPU_TIMEOUT      0x88
45
46 #endif