USB Host Shield 2.0
Main Page
Related Pages
Classes
Files
File List
File Members
Github
USB_Host_Shield_2_0
controllerEnums.h
Go to the documentation of this file.
1
/* Copyright (C) 2013 Kristian Lauszus, TKJ Electronics. All rights reserved.
2
3
This software may be distributed and modified under the terms of the GNU
4
General Public License version 2 (GPL2) as published by the Free Software
5
Foundation and appearing in the file GPL2.TXT included in the packaging of
6
this file. Please note that GPL2 Section 2[b] requires that all works based
7
on this software must also be made publicly available under the terms of
8
the GPL2 ("Copyleft").
9
10
Contact information
11
-------------------
12
13
Kristian Lauszus, TKJ Electronics
14
Web : http://www.tkjelectronics.com
15
e-mail : kristianl@tkjelectronics.com
16
*/
17
18
#ifndef _controllerenums_h
19
#define _controllerenums_h
20
27
enum
LEDEnum
{
28
OFF
= 0,
29
#ifndef RBL_NRF51822
30
LED1
= 1,
31
LED2
= 2,
32
LED3
= 3,
33
LED4
= 4,
34
#endif
35
LED5
= 5,
36
LED6
= 6,
37
LED7
= 7,
38
LED8
= 8,
39
LED9
= 9,
40
LED10
= 10,
42
ALL
= 5,
43
};
44
46
enum
ColorsEnum
{
48
Red
= 0xFF0000,
50
Green
= 0xFF00,
52
Blue
= 0xFF,
53
55
Yellow
= 0xFFEB04,
57
Lightblue
= 0xFFFF,
59
Purple
= 0xFF00FF,
60
Purble
= 0xFF00FF,
61
63
White
= 0xFFFFFF,
65
Off
= 0x00,
66
};
67
68
enum
RumbleEnum
{
69
RumbleHigh
= 0x10,
70
RumbleLow
= 0x20,
71
};
72
74
enum
ButtonEnum
{
77
UP
= 0,
78
RIGHT
= 1,
79
DOWN
= 2,
80
LEFT
= 3,
85
PLUS
= 5,
86
TWO
= 6,
87
ONE
= 7,
88
MINUS
= 8,
89
HOME
= 9,
90
Z
= 10,
91
C
= 11,
92
B
= 12,
93
A
= 13,
98
L
= 16,
99
R
= 17,
100
ZL
= 18,
101
ZR
= 19,
106
SELECT
= 4,
107
START
= 5,
108
L3
= 6,
109
R3
= 7,
110
111
L2
= 8,
112
R2
= 9,
113
L1
= 10,
114
R1
= 11,
115
TRIANGLE
= 12,
116
CIRCLE
= 13,
117
CROSS
= 14,
118
SQUARE
= 15,
119
120
PS
= 16,
121
122
MOVE
= 17,
// Covers 12 bits - we only need to read the top 8
123
T
= 18,
// Covers 12 bits - we only need to read the top 8
127
SHARE
= 4,
128
OPTIONS
= 5,
129
TOUCHPAD
= 17,
134
BACK
= 4,
135
X
= 14,
136
Y
= 15,
137
XBOX
= 16,
138
SYNC
= 17,
139
BLACK
= 8,
// Available on the original Xbox controller
140
WHITE
= 9,
// Available on the original Xbox controller
144
RED
= 0,
145
YELLOW
= 1,
146
GREEN
= 2,
147
ORANGE
= 3,
148
BLUE
= 4,
150
};
151
153
enum
AnalogHatEnum
{
155
LeftHatX
= 0,
157
LeftHatY
= 1,
159
RightHatX
= 2,
161
RightHatY
= 3,
162
};
163
168
enum
SensorEnum
{
170
aX
= 50,
aY
= 52,
aZ
= 54,
172
gZ
= 56,
173
gX
,
gY
,
// These are not available on the PS3 controller
174
176
aXmove
= 28,
178
aZmove
= 30,
180
aYmove
= 32,
181
183
gXmove
= 40,
185
gZmove
= 42,
187
gYmove
= 44,
188
190
tempMove
= 46,
191
193
mXmove
= 47,
195
mZmove
= 49,
197
mYmove
= 50,
198
};
199
201
enum
AngleEnum
{
202
Pitch
= 0x01,
203
Roll
= 0x02,
204
};
205
206
#endif
R3
Definition:
controllerEnums.h:109
RightHatX
Definition:
controllerEnums.h:159
LED5
Definition:
controllerEnums.h:35
START
Definition:
controllerEnums.h:107
gX
Definition:
controllerEnums.h:173
LED1
Definition:
controllerEnums.h:30
SHARE
Definition:
controllerEnums.h:127
Purble
Definition:
controllerEnums.h:60
aYmove
Definition:
controllerEnums.h:180
gYmove
Definition:
controllerEnums.h:187
LED8
Definition:
controllerEnums.h:38
BLUE
Definition:
controllerEnums.h:148
SQUARE
Definition:
controllerEnums.h:118
LED10
Definition:
controllerEnums.h:40
WHITE
Definition:
controllerEnums.h:140
AnalogHatEnum
AnalogHatEnum
Definition:
controllerEnums.h:153
Yellow
Definition:
controllerEnums.h:55
aZ
Definition:
controllerEnums.h:170
X
Definition:
controllerEnums.h:135
aXmove
Definition:
controllerEnums.h:176
mZmove
Definition:
controllerEnums.h:195
TRIANGLE
Definition:
controllerEnums.h:115
BACK
Definition:
controllerEnums.h:134
Y
Definition:
controllerEnums.h:136
CROSS
Definition:
controllerEnums.h:117
aY
Definition:
controllerEnums.h:170
UP
Definition:
controllerEnums.h:77
SYNC
Definition:
controllerEnums.h:138
gZmove
Definition:
controllerEnums.h:185
LEDEnum
LEDEnum
Definition:
controllerEnums.h:27
B
Definition:
controllerEnums.h:92
RIGHT
Definition:
controllerEnums.h:78
BLACK
Definition:
controllerEnums.h:139
ONE
Definition:
controllerEnums.h:87
RumbleEnum
RumbleEnum
Definition:
controllerEnums.h:68
A
Definition:
controllerEnums.h:93
mXmove
Definition:
controllerEnums.h:193
R1
Definition:
controllerEnums.h:114
LED2
Definition:
controllerEnums.h:31
TWO
Definition:
controllerEnums.h:86
gXmove
Definition:
controllerEnums.h:183
ORANGE
Definition:
controllerEnums.h:147
RightHatY
Definition:
controllerEnums.h:161
DOWN
Definition:
controllerEnums.h:79
Pitch
Definition:
controllerEnums.h:202
LED9
Definition:
controllerEnums.h:39
MOVE
Definition:
controllerEnums.h:122
ButtonEnum
ButtonEnum
Definition:
controllerEnums.h:74
L2
Definition:
controllerEnums.h:111
LED4
Definition:
controllerEnums.h:33
aZmove
Definition:
controllerEnums.h:178
Roll
Definition:
controllerEnums.h:203
SELECT
Definition:
controllerEnums.h:106
L
Definition:
controllerEnums.h:98
ALL
Definition:
controllerEnums.h:42
ZR
Definition:
controllerEnums.h:101
Purple
Definition:
controllerEnums.h:59
T
Definition:
controllerEnums.h:123
White
Definition:
controllerEnums.h:63
LED6
Definition:
controllerEnums.h:36
Green
Definition:
controllerEnums.h:50
YELLOW
Definition:
controllerEnums.h:145
GREEN
Definition:
controllerEnums.h:146
ColorsEnum
ColorsEnum
Definition:
controllerEnums.h:46
XBOX
Definition:
controllerEnums.h:137
tempMove
Definition:
controllerEnums.h:190
OFF
Definition:
controllerEnums.h:28
gZ
Definition:
controllerEnums.h:172
AngleEnum
AngleEnum
Definition:
controllerEnums.h:201
L1
Definition:
controllerEnums.h:113
Blue
Definition:
controllerEnums.h:52
Z
Definition:
controllerEnums.h:90
C
Definition:
controllerEnums.h:91
PLUS
Definition:
controllerEnums.h:85
R
Definition:
controllerEnums.h:99
RED
Definition:
controllerEnums.h:144
RumbleHigh
Definition:
controllerEnums.h:69
L3
Definition:
controllerEnums.h:108
Off
Definition:
controllerEnums.h:65
PS
Definition:
controllerEnums.h:120
CIRCLE
Definition:
controllerEnums.h:116
MINUS
Definition:
controllerEnums.h:88
LED3
Definition:
controllerEnums.h:32
TOUCHPAD
Definition:
controllerEnums.h:129
Red
Definition:
controllerEnums.h:48
LED7
Definition:
controllerEnums.h:37
Lightblue
Definition:
controllerEnums.h:57
LeftHatY
Definition:
controllerEnums.h:157
LeftHatX
Definition:
controllerEnums.h:155
SensorEnum
SensorEnum
Definition:
controllerEnums.h:168
R2
Definition:
controllerEnums.h:112
HOME
Definition:
controllerEnums.h:89
gY
Definition:
controllerEnums.h:173
OPTIONS
Definition:
controllerEnums.h:128
mYmove
Definition:
controllerEnums.h:197
aX
Definition:
controllerEnums.h:170
ZL
Definition:
controllerEnums.h:100
LEFT
Definition:
controllerEnums.h:80
RumbleLow
Definition:
controllerEnums.h:70
Generated by
1.8.11