2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoSCPolicyDef.h
14 * @brief This file is definition of StateMachine state and event for policy
16 //==========================================================================
17 #ifndef __CICO_SC_POLICY_DEF_H__
18 #define __CICO_SC_POLICY_DEF_H__
21 #define STID_DRIVING 1000
22 #define STID_DRIVING_STOPPING 1001
23 #define STID_DRIVING_RUNNING 1002
25 // shift position state
26 #define STID_SHIFTPOS_PARKING 2001
27 #define STID_SHIFTPOS_REVERSE 2002
28 #define STID_SHIFTPOS_OTHER 2003
31 #define STID_WINKER_OFF 3001
32 #define STID_WINKER_RIGHT 3002
33 #define STID_WINKER_LEFT 3003
36 #define STID_CAMERA 4000
37 #define STID_CAMERA_OFF 4001
38 #define STID_CAMERA_BACK 4002
39 #define STID_CAMERA_RIGHT 4003
40 #define STID_CAMERA_LEFT 4004
43 #define STID_NIGHTMODE 5000
44 #define STID_NIGHTMODE_OFF 5001
45 #define STID_NIGHTMODE_ON 5002
47 // driving regulation state id
48 #define STID_DRVREGULATION 9000
49 #define STID_DRVREGULATION_OFF 9001
50 #define STID_DRVREGULATION_ON 9002
52 // display0 zone state id
53 #define STID_DISPLAY0_ZONE 10000
54 #define STID_DISPLAY0_ZONE1 10001
55 #define STID_DISPLAY0_ZONE2 10002
56 #define STID_DISPLAY0_ZONE3 10003
57 #define STID_DISPLAY0_ZONE4 10004
58 #define STID_DISPLAY0_ZONE5 10005
59 #define STID_DISPLAY0_ZONE6 10006
60 #define STID_DISPLAY0_ZONE7 10007
61 #define STID_DISPLAY0_ZONE8 10008
62 #define STID_DISPLAY0_ZONE9 10009
63 #define STID_DISPLAY0_ZONE10 10010
64 #define STID_DISPLAY0_ZONE11 10011
65 #define STID_DISPLAY0_ZONE12 10012
66 #define STID_DISPLAY0_ZONE13 10013
67 #define STID_DISPLAY0_ZONE14 10014
68 #define STID_DISPLAY0_ZONE15 10015
69 #define STID_DISPLAY0_ZONE16 10016
70 #define STID_DISPLAY0_ZONE17 10017
71 #define STID_DISPLAY0_ZONE18 10018
72 #define STID_DISPLAY0_ZONE19 10019
73 #define STID_DISPLAY0_ZONE20 10020
74 #define STID_DISPLAY0_NOOWER 10999
76 // display1 zone state id
77 #define STID_DISPLAY1_ZONE 11000
78 #define STID_DISPLAY1_ZONE1 11001
79 #define STID_DISPLAY1_ZONE2 11002
80 #define STID_DISPLAY1_ZONE3 11003
81 #define STID_DISPLAY1_ZONE4 11004
82 #define STID_DISPLAY1_ZONE5 11005
83 #define STID_DISPLAY1_ZONE6 11006
84 #define STID_DISPLAY1_ZONE7 11007
85 #define STID_DISPLAY1_ZONE8 11008
86 #define STID_DISPLAY1_ZONE9 11009
87 #define STID_DISPLAY1_ZONE10 11010
88 #define STID_DISPLAY1_ZONE11 11011
89 #define STID_DISPLAY1_ZONE12 11012
90 #define STID_DISPLAY1_ZONE13 11013
91 #define STID_DISPLAY1_ZONE14 11014
92 #define STID_DISPLAY1_ZONE15 11015
93 #define STID_DISPLAY1_ZONE16 11016
94 #define STID_DISPLAY1_ZONE17 11017
95 #define STID_DISPLAY1_ZONE18 11018
96 #define STID_DISPLAY1_ZONE19 11019
97 #define STID_DISPLAY1_ZONE20 11020
98 #define STID_DISPLAY1_NOOWER 11999
100 // display0 category state id
101 #define STID_DISPLAY0_CATEGORY 12000
102 #define STID_DISPLAY0_CATEGORY1 12001
103 #define STID_DISPLAY0_CATEGORY2 12002
104 #define STID_DISPLAY0_CATEGORY3 12003
105 #define STID_DISPLAY0_CATEGORY4 12004
106 #define STID_DISPLAY0_CATEGORY5 12005
107 #define STID_DISPLAY0_CATEGORY6 12006
108 #define STID_DISPLAY0_CATEGORY7 12007
109 #define STID_DISPLAY0_CATEGORY8 12008
110 #define STID_DISPLAY0_CATEGORY9 12009
111 #define STID_DISPLAY0_CATEGORY10 12010
112 #define STID_DISPLAY0_CATEGORY11 12011
114 #define STID_DISP0_ZONE2_CATEGORY 12100
115 #define STID_DISP0_ZONE2_CATEGORY1 12101
116 #define STID_DISP0_ZONE2_CATEGORY2 12102
117 #define STID_DISP0_ZONE2_CATEGORY3 12103
118 #define STID_DISP0_ZONE2_CATEGORY4 12104
119 #define STID_DISP0_ZONE2_CATEGORY5 12105
120 #define STID_DISP0_ZONE2_CATEGORY6 12106
121 #define STID_DISP0_ZONE2_CATEGORY7 12107
122 #define STID_DISP0_ZONE2_CATEGORY8 12108
123 #define STID_DISP0_ZONE2_CATEGORY9 12109
124 #define STID_DISP0_ZONE2_CATEGORY10 12110
125 #define STID_DISP0_ZONE2_CATEGORY11 12111
126 #define STID_DISP0_ZONE3_CATEGORY 12200
127 #define STID_DISP0_ZONE3_CATEGORY1 12201
128 #define STID_DISP0_ZONE3_CATEGORY2 12202
129 #define STID_DISP0_ZONE3_CATEGORY3 12203
130 #define STID_DISP0_ZONE3_CATEGORY4 12204
131 #define STID_DISP0_ZONE3_CATEGORY5 12205
132 #define STID_DISP0_ZONE3_CATEGORY6 12206
133 #define STID_DISP0_ZONE3_CATEGORY7 12207
134 #define STID_DISP0_ZONE3_CATEGORY8 12208
135 #define STID_DISP0_ZONE3_CATEGORY9 12209
136 #define STID_DISP0_ZONE3_CATEGORY10 12210
137 #define STID_DISP0_ZONE3_CATEGORY11 12211
140 // display1 category state id
141 #define STID_DISPLAY1_CATEGORY 13000
142 #define STID_DISPLAY1_CATEGORY1 13001
143 #define STID_DISPLAY1_CATEGORY2 13002
144 #define STID_DISPLAY1_CATEGORY3 13003
145 #define STID_DISPLAY1_CATEGORY4 13004
146 #define STID_DISPLAY1_CATEGORY5 13005
147 #define STID_DISPLAY1_CATEGORY6 13006
148 #define STID_DISPLAY1_CATEGORY7 13007
149 #define STID_DISPLAY1_CATEGORY8 13008
150 #define STID_DISPLAY1_CATEGORY9 13009
151 #define STID_DISPLAY1_CATEGORY10 13010
152 #define STID_DISPLAY1_CATEGORY11 13011
155 #define STID_ONSCREEN 14000
156 #define STID_ONSCREEN_WARNING 14001
157 #define STID_ONSCREEN_ATTENTION 14002
158 #define STID_ONSCREEN_MESSAGE 14003
160 // interrput display0 zone1 state id
161 #define STID_INTTERPUT_D0_Z1 15000
162 #define STID_INTTERPUT_D0_Z1_PRI1 15001
163 #define STID_INTTERPUT_D0_Z1_PRI2 15002
164 #define STID_INTTERPUT_D0_Z1_PRI3 15003
165 #define STID_INTTERPUT_D0_Z1_INVISIBLE 15999
167 // interrput display0 zone2 state id
168 #define STID_INTTERPUT_D0_Z2 16000
169 #define STID_INTTERPUT_D0_Z2_PRI1 16001
170 #define STID_INTTERPUT_D0_Z2_PRI2 16002
171 #define STID_INTTERPUT_D0_Z2_PRI3 16003
172 #define STID_INTTERPUT_D0_Z2_INVISIBLE 16999
174 // interrput display0 zone3 state id
175 #define STID_INTTERPUT_D0_Z3 17000
176 #define STID_INTTERPUT_D0_Z3_PRI1 17001
177 #define STID_INTTERPUT_D0_Z3_PRI2 17002
178 #define STID_INTTERPUT_D0_Z3_PRI3 17003
179 #define STID_INTTERPUT_D0_Z3_INVISIBLE 17999
181 // sound zone state id
182 #define STID_SOUND_ZONE 20000
183 #define STID_SOUND_ZONE1 20001
184 #define STID_SOUND_ZONE2 20002
185 #define STID_SOUND_ZONE3 20003
187 // display0 category state id
188 #define STID_SOUND_CATEGORY 22000
189 #define STID_SOUND_CATEGORY1 22001
190 #define STID_SOUND_CATEGORY2 22002
191 #define STID_SOUND_CATEGORY3 22003
192 #define STID_SOUND_CATEGORY4 22004
193 #define STID_SOUND_CATEGORY5 22005
194 #define STID_SOUND_CATEGORY6 22006
195 #define STID_SOUND_CATEGORY7 22007
196 #define STID_SOUND_CATEGORY8 22008
197 #define STID_SOUND_CATEGORY9 22009
198 #define STID_SOUND_CATEGORY10 22010
199 #define STID_SOUND_CATEGORY11 22011
201 // interrupt display0 zone1 state id
202 #define STID_INTTERPUT_S_Z1 25000
203 #define STID_INTTERPUT_S_Z1_PRI1 25001
204 #define STID_INTTERPUT_S_Z1_PRI2 25002
205 #define STID_INTTERPUT_S_Z1_PRI3 25003
206 #define STID_INTTERPUT_S_Z1_INVISIBLE 25999
208 // interrupt display0 zone2 state id
209 #define STID_INTTERPUT_S_Z2 26000
210 #define STID_INTTERPUT_S_Z2_PRI1 26001
211 #define STID_INTTERPUT_S_Z2_PRI2 26002
212 #define STID_INTTERPUT_S_Z2_PRI3 26003
213 #define STID_INTTERPUT_S_Z2_INVISIBLE 26999
215 // interrupt display0 zone3 state id
216 #define STID_INTTERPUT_S_Z3 27000
217 #define STID_INTTERPUT_S_Z3_PRI1 27001
218 #define STID_INTTERPUT_S_Z3_PRI2 27002
219 #define STID_INTTERPUT_S_Z3_PRI3 27003
220 #define STID_INTTERPUT_S_Z3_INVISIBLE 27999
222 // steering switch state id
223 #define STID_INPUT1_NOTUSING 30001
224 #define STID_INPUT1_USING 30002
225 #define STID_INPUT2_NOTUSING 30101
226 #define STID_INPUT2_USING 30102
229 #define EVID_VELOCTY 1000
230 #define EVID_SHIFTPOS 2000
231 #define EVID_TURN_OFF 3000
232 #define EVID_TURN_LEFT 3001
233 #define EVID_TURN_RIGHT 3002
234 #define EVID_CAMERA 4000
235 #define EVID_NIGHTMODE 5000
236 #define EVID_DRVREGULATION 9000
238 #define EVID_DISPLAY_ZONE_ACQUIRE 10000
239 #define EVID_DISPLAY_ZONE_RELEASE 10999
242 #define ZONEID_CENTER_FULL 1
243 #define ZONEID_CENTER_UPPER 2
244 #define ZONEID_CENTER_LOWER 3
248 #define EVID_DISPLAY0_CATEGORY 12000
250 #define EVID_DISP0_ZONE2_CATEGORY 12100
251 #define EVID_DISP0_ZONE3_CATEGORY 12200
253 #define EVID_DISPLAY1_CATEGORY 13000
255 #define EVID_ONSCREEN 14000
257 #define EVID_INTTERPUT_D0_Z1 15000
258 #define EVID_INTTERPUT_D0_Z2 16000
259 #define EVID_INTTERPUT_D0_Z3 17000
261 #define EVID_SOUND_ZONE 20000
262 #define EVID_SOUND_ZONE_NOUSE 20999
264 #define EVID_SOUND_CATEGORY 22000
265 #define EVID_SOUND_CATEGORY_UNKNOWN 22999
267 #define EVID_INTTERPUT_S_Z1 25000
268 #define EVID_INTTERPUT_S_Z1_NOOUTPUT 25999
269 #define EVID_INTTERPUT_S_Z2 26000
270 #define EVID_INTTERPUT_S_Z2_NOOUTPUT 26999
271 #define EVID_INTTERPUT_S_Z3 27000
272 #define EVID_INTTERPUT_S_Z3_NOOUTPUT 27999
274 #define EVID_INPUT1_ACQUIRE 30000
275 #define EVID_INPUT1_RELEASE 30001
277 #define EVID_INPUT2_ACQUIRE 30100
278 #define EVID_INPUT2_RELEASE 30101
280 #endif // __CICO_SC_POLICY_DEF_H__
281 // vim:set expandtab ts=4 sw=4: