1
2
3
4
5
6
7
8 #ifndef EC168_H
9 #define EC168_H
10
11 #include "dvb_usb.h"
12
13 #define EC168_USB_TIMEOUT 1000
14 #define EC168_FIRMWARE "dvb-usb-ec168.fw"
15
16 struct ec168_req {
17 u8 cmd;
18 u16 value;
19 u16 index;
20 u16 size;
21 u8 *data;
22 };
23
24 enum ec168_cmd {
25 DOWNLOAD_FIRMWARE = 0x00,
26 CONFIG = 0x01,
27 DEMOD_RW = 0x03,
28 GPIO = 0x04,
29 STREAMING_CTRL = 0x10,
30 READ_I2C = 0x20,
31 WRITE_I2C = 0x21,
32 HID_DOWNLOAD = 0x30,
33 GET_CONFIG,
34 SET_CONFIG,
35 READ_DEMOD,
36 WRITE_DEMOD,
37 };
38
39 #endif