forked from gridseed/usb-miner
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathgc3355-commands.h
29 lines (26 loc) · 1.15 KB
/
gc3355-commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* reset gcp */
static const unsigned char *gcp_cmd_reset[] = {
(unsigned char[]) {0x10, 0x55, 0xaa, 0xc0, 0x00, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00},
NULL
};
/* commands for single LTC mode */
static const unsigned char *single_cmd_init[] = {
/* set # of chips to 5 */
(unsigned char[]) {0x10, 0x55, 0xaa, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0x05, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00},
/* disable btc cores */
(unsigned char[]) {0x18, 0x55, 0xaa, 0xef, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
/* enable ltc */
(unsigned char[]) {0x08, 0x55, 0xaa, 0xef, 0x30, 0x20, 0x00, 0x00, 0x00},
NULL
};
static const unsigned char *single_cmd_reset[] = {
/* reset ltc calculation unit */
(unsigned char[]) {0x08, 0x55, 0xaa, 0x1f, 0x28, 0x16, 0x00, 0x00, 0x00},
/* clear reset */
(unsigned char[]) {0x08, 0x55, 0xaa, 0x1f, 0x28, 0x17, 0x00, 0x00, 0x00},
NULL
};
static const unsigned char *firmware_request_cmd[] = {
(unsigned char[]) {0x10, 0x55, 0xaa, 0xc0, 0x00, 0x90, 0x90, 0x90, 0x90, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00},
NULL
};