-
Notifications
You must be signed in to change notification settings - Fork 0
/
junk
52 lines (44 loc) · 828 Bytes
/
junk
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Dev #1: (05e3)FORTUNETEK (fd51) ePuppy */
#define USB_EPUPPY_VENDOR 0x05e3
#define USB_EPUPPY_PRODUCT 0xfd51
/* Set LED & speaker state
*
* requesttype = 64;
* request = 4;
* value = 1089;
* index = 0;
* size = 2;
* timeout = 500000;
*
*/
/* buffer[1] - byte 1 */
#define RED 0x08
#define GREEN 0x04
#define SPEAKER 0x02
/*
* 0x01 - Don't know
* 0x00 - Don't know, I think off.
*/
/* buffer[0] - byte 0 */
#define BLINK 0x02
#define SOLID 0x01
#define OFF 0x00
#define SP_ON 0x00
#define SP_OFF 0x01
/* Read switch (paw/bop) state
*
* requesttype = 192;
* request = 12;
* value = 320;
* index = 0;
* size = 1;
* timeout = 500000;
*
* Return values below:
*/
#define NO_PUSH 0x00
#define RIGHT_PAW 0x01
#define HEAD_BOP 0x02
#define LEFT_PAW 0x04
#define RIGHT_FOOT 0x08
#define LEFT_FOOT 0x10