ITS
facilitiesConstantes.h
Go to the documentation of this file.
1 #ifndef facilitiesConstantes_H
2 #define facilitiesConstantes_H
3 
4 /* Network */
5 #define FACILITIES_CAM_REQ 5100
6 #define FACILITIES_CAM_REP 5101
7 #define FACILITIES_CAM_IND 5102
8 
9 #define FACILITIES_DENM_REQ 5200
10 #define FACILITIES_DENM_REP 5201
11 #define FACILITIES_DENM_IND 5202
12 
13 #define BTP_CAM_PORT 2001
14 #define BTP_DENM_PORT 2002
15 #define BTP_MAP_PORT 2003
16 #define BTP_SPAT_PORT 2004
17 #define BTP_SAM_PORT 2005
18 
19 /* CAM constantes */
20 #define T_GenCamMin 100
21 #define T_GenCamMax 1000
22 #define MSG_LENGTH 500
23 
24 /* DENM constantes */
25 
26 /* MessageType */
27 #define MT_AppDENM_trigger 0x53
28 #define MT_AppDENM_update 0x54
29 #define MT_AppDENM_termination 0x55
30 #define MT_AppDENM_result 0x56
31 
32 /* Success */
33 #define SUCCESS_FAIL 0x00
34 #define SUCCESS_SUCCESS 0x01
35 
36 /* Primitives */
37 
38 /*
39  * AppDENM_trigger
40  * ---------------
41  *
42  * 0 1 2 3
43  * 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
44  * ________________ _ _ _ _ _ _ _ _ ______________________________
45  * | | | | | | | | | | :
46  * | MessageType |V|R|T|I|S|L|C|A| … :
47  * |________________|_|_|_|_|_|_|_|_|______________________________:
48  * : :
49  * : DetectionTime :
50  * :________________________________ ______________________________:
51  * : | :
52  * : … | … :
53  * :________________________________|______________________________:
54  * : :
55  * : … :
56  * :_______________________________________________________________:
57  * : :
58  * : EventPosition :
59  * :_______________________________________________________________:
60  * : :
61  * : … :
62  * :________________________________ ______________________________:
63  * : | :
64  * : … | ValidityDuration :
65  * :________________________________|______________________________:
66  * : | |
67  * : … | RepetitionDuration |
68  * :________________________________|______________________________|
69  * | | |
70  * | TransmissionInterval | RepetitionInterval |
71  * |________________________________|______________________________|
72  * | | |
73  * | SituationLength | Situation |
74  * |________________________________|______________________________|
75  * | | |
76  * | LocationLength | Location |
77  * |________________________________|______________________________|
78  * | | |
79  * | AlacarteLength | Alacarte |
80  * |________________ _______________|______________________________|
81  * | | | :
82  * | RelevanceDist | RelevanceTD | DestinationLatitude :
83  * |________________|_______________|______________________________:
84  * : | :
85  * : … | DestinationLongitude :
86  * :________________________________|______________________________:
87  * : | |
88  * : … | DistanceA |
89  * :________________________________|______________________________|
90  * | | |
91  * | DistanceB | Angle |
92  * |________________ _______________|______________________________|
93  * | |
94  * | TrafficClass |
95  * |________________|
96  *
97  * ________________________________________________________________________________________________
98  * | | | |
99  * | Nom | Taille | Valeur |
100  * |______________________|________________________|________________________________________________|
101  * | | | |
102  * | MessageType | 1 octet | 0x53 |
103  * | V | 1 bit | ValidityDuration est-il présent ? |
104  * | R | 1 bit | RepetitionDuration est-il présent ? |
105  * | T | 1 bit | TransmissionInterval est-il présent ? |
106  * | I | 1 bit | RepetitionInterval est-il présent ? |
107  * | S | 1 bit | Situation est-il présent ? |
108  * | L | 1 bit | Location est-il présent ? |
109  * | C | 1 bit | Alacarte est-il présent ? |
110  * | A | 1 bit | RelevanceDist et RelevanceTD sont-il présent ? |
111  * | DetectionTime | 8 octets | DENM.denm.management.detectionTime |
112  * | EventPosition | 16 octets | DENM.denm.management.eventPosition en UPER |
113  * | ValidityDuration | 4 octets | DENM.denm.management.validityDuration |
114  * | RepetitionDuration | 2 octets | Durée de la répétition |
115  * | TransmissionInterval | 2 octets | DENM.denm.management.transmissionInterval |
116  * | RepetitionInterval | 2 octets | Intervalle entre deux répétitions |
117  * | SituationLength | 2 octets | Taille du SituationContainer |
118  * | Situation | SituationLength octets | DENM.denm.situation en UPER |
119  * | LocationLength | 2 octets | Taille du LocationContainer |
120  * | Location | LocationLength octets | DENM.denm.location en UPER |
121  * | AlacarteContainer | 2 octets | Taille du AlacarteContainer |
122  * | Alacarate | AlacarteLength octets | DENM.denm.alacarte en UPER |
123  * | RelevanceDist | 1 octet | DENM.denm.management.relevanceDistance |
124  * | RelevanceTD | 1 octet | DENM.denm.management.relevanceTrafficDirection |
125  * | DestinationLatitude | 4 octets signés | Latitude de la zone de destination en 0,1 µ° |
126  * | DestinationLongitude | 4 octets signés | Longitude de la zone de destination en 0,1 µ° |
127  * | DistanceA | 2 octets | Semi petit axe en m |
128  * | DistanceB | 2 octets | Semi grand axe en m |
129  * | Angle | 2 octets | Angle par rapport au Nord en ° |
130  * | TrafficClass | 1 octet | TrafficClass de BTP |
131  * |______________________|________________________|________________________________________________|
132  */
133 #define LGHT_AppDENM_trigger_MessageType 1
134 #define LGHT_AppDENM_trigger_Options 1
135 #define LGHT_AppDENM_trigger_DetectionTime 8
136 #define LGHT_AppDENM_trigger_EventPosition 16
137 #define LGHT_AppDENM_trigger_ValidityDuration 4
138 #define LGHT_AppDENM_trigger_RepetitionDuration 2
139 #define LGHT_AppDENM_trigger_RepetitionInterval 2
140 #define LGHT_AppDENM_trigger_TransmissionInterval 2
141 #define LGHT_AppDENM_trigger_SituationLength 2
142 #define LGHT_AppDENM_trigger_LocationLength 2
143 #define LGHT_AppDENM_trigger_AlacarteLength 2
144 #define LGHT_AppDENM_trigger_RelevanceDist 1
145 #define LGHT_AppDENM_trigger_RelevanceTD 1
146 #define LGHT_AppDENM_trigger_DestinationLatitude 4
147 #define LGHT_AppDENM_trigger_DestinationLongitude 4
148 #define LGHT_AppDENM_trigger_DistanceA 2
149 #define LGHT_AppDENM_trigger_DistanceB 2
150 #define LGHT_AppDENM_trigger_Angle 2
151 #define LGHT_AppDENM_trigger_TrafficClass 1
152 
153 #define OPT_AppDENM_trigger_ValidityDuration 7
154 #define OPT_AppDENM_trigger_RepetitionDuration 6
155 #define OPT_AppDENM_trigger_TransmissionInterval 5
156 #define OPT_AppDENM_trigger_RepetitionInterval 4
157 #define OPT_AppDENM_trigger_Situation 3
158 #define OPT_AppDENM_trigger_Location 2
159 #define OPT_AppDENM_trigger_Alacarte 1
160 #define OPT_AppDENM_trigger_Area 0
161 
162 #define Pos_AppDENM_trigger_MessageType 0
163 #define Pos_AppDENM_trigger_Options 1
164 #define Beg_AppDENM_trigger_DetectionTime 2
165 #define End_AppDENM_trigger_DetectionTime Beg_AppDENM_trigger_DetectionTime + \
166  LGHT_AppDENM_trigger_DetectionTime
167 #define Beg_AppDENM_trigger_EventPosition 10
168 #define End_AppDENM_trigger_EventPosition Beg_AppDENM_trigger_EventPosition + \
169  LGHT_AppDENM_trigger_EventPosition
170 #define Beg_AppDENM_trigger_ValidityDuration 26
171 #define End_AppDENM_trigger_ValidityDuration Beg_AppDENM_trigger_ValidityDuration + \
172  LGHT_AppDENM_trigger_ValidityDuration
173 #define Beg_AppDENM_trigger_RepetitionDuration 26
174 #define End_AppDENM_trigger_RepetitionDuration Beg_AppDENM_trigger_RepetitionDuration + \
175  LGHT_AppDENM_trigger_RepetitionDuration
176 #define Beg_AppDENM_trigger_TransmissionInterval 26
177 #define End_AppDENM_trigger_TransmissionInterval Beg_AppDENM_trigger_TransmissionInterval + \
178  LGHT_AppDENM_trigger_TransmissionInterval
179 #define Beg_AppDENM_trigger_RepetitionInterval 26
180 #define End_AppDENM_trigger_RepetitionInterval Beg_AppDENM_trigger_RepetitionInterval + \
181  LGHT_AppDENM_trigger_RepetitionInterval
182 #define Beg_AppDENM_trigger_SituationLength 26
183 #define End_AppDENM_trigger_SituationLength Beg_AppDENM_trigger_SituationLength + \
184  LGHT_AppDENM_trigger_SituationLength
185 #define Beg_AppDENM_trigger_Situation 28
186 #define End_AppDENM_trigger_Situation Beg_AppDENM_trigger_Situation
187 #define Beg_AppDENM_trigger_LocationLength 26
188 #define End_AppDENM_trigger_LocationLength Beg_AppDENM_trigger_LocationLength + \
189  LGHT_AppDENM_trigger_LocationLength
190 #define Beg_AppDENM_trigger_Location 28
191 #define End_AppDENM_trigger_Location Beg_AppDENM_trigger_Location
192 #define Beg_AppDENM_trigger_AlacarteLength 26
193 #define End_AppDENM_trigger_AlacarteLength Beg_AppDENM_trigger_AlacarteLength + \
194  LGHT_AppDENM_trigger_AlacarteLength
195 #define Beg_AppDENM_trigger_Alacarte 28
196 #define End_AppDENM_trigger_Alacarte Beg_AppDENM_trigger_Alacarte
197 #define Pos_AppDENM_trigger_RelevanceDist 26
198 #define Pos_AppDENM_trigger_RelevanceTD 27
199 #define Beg_AppDENM_trigger_DestinationLatitude 26
200 #define End_AppDENM_trigger_DestinationLatitude Beg_AppDENM_trigger_DestinationLatitude + \
201  LGHT_AppDENM_trigger_DestinationLatitude
202 #define Beg_AppDENM_trigger_DestinationLongitude 30
203 #define End_AppDENM_trigger_DestinationLongitude Beg_AppDENM_trigger_DestinationLongitude + \
204  LGHT_AppDENM_trigger_DestinationLongitude
205 #define Beg_AppDENM_trigger_DistanceA 34
206 #define End_AppDENM_trigger_DistanceA Beg_AppDENM_trigger_DistanceA + \
207  LGHT_AppDENM_trigger_DistanceA
208 #define Beg_AppDENM_trigger_DistanceB 36
209 #define End_AppDENM_trigger_DistanceB Beg_AppDENM_trigger_DistanceB + \
210  LGHT_AppDENM_trigger_DistanceB
211 #define Beg_AppDENM_trigger_Angle 38
212 #define End_AppDENM_trigger_Angle Beg_AppDENM_trigger_Angle + \
213  LGHT_AppDENM_trigger_Angle
214 #define Pos_AppDENM_trigger_TrafficClass 40
215 
216 /*
217  * AppDENM_update
218  * --------------
219  *
220  * 0 1 2 3
221  * 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
222  * ________________ _ _ _ _ _ _ _ _ _ _____________ ______________
223  * | | | | | | | | | | | | :
224  * | MessageType |V|R|T|I|S|L|C|A|F| X | … :
225  * |________________|_|_|_|_|_|_|_|_|_|_____________|______________:
226  * : | :
227  * : OriginatingStationID |SequenceNumber:
228  * :________________ _______________________________|______________:
229  * : | :
230  * : … | … :
231  * :________________|______________________________________________:
232  * : :
233  * : DetectionTime :
234  * :________________ ______________________________________________:
235  * : | :
236  * : … | … :
237  * :________________|______________________________________________:
238  * : :
239  * : EventPosition :
240  * :_______________________________________________________________:
241  * : :
242  * : … :
243  * :_______________________________________________________________:
244  * : :
245  * : … :
246  * :_______________________________________________________________:
247  * : | :
248  * : … | ValidityDuration :
249  * :________________|_______________________________ ______________:
250  * : | | :
251  * : … | RepetitionDuration | Transmission :
252  * :________________|_______________________________|______________:
253  * : | | :
254  * : Interval | RepetitionInterval | Situation :
255  * :________________|_______________ _______________|______________:
256  * : | | |
257  * : Length | Situation | LocationLength |
258  * :________________|_______________|_______________ ______________|
259  * | | | |
260  * | Location | AlacarteLength | Alacarte |
261  * |________________|_______________ _______________|______________|
262  * | | | :
263  * | RelevanceDist | RelevanceTD | DestinationLatitude :
264  * |________________|_______________|______________________________:
265  * : | :
266  * : … | DestinationLongitude :
267  * :________________________________|______________________________:
268  * : | |
269  * : … | DistanceA |
270  * :________________________________|______________________________|
271  * | | |
272  * | DistanceB | Angle |
273  * |________________ _______________|______________________________|
274  * | |
275  * | TrafficClass |
276  * |________________|
277  *
278  * ____________________________________________________________________________________________________
279  * | | | |
280  * | Nom | Taille | Valeur |
281  * |______________________|________________________|____________________________________________________|
282  * | | | |
283  * | MessageType | 1 octet | 0x54 |
284  * | V | 1 bit | ValidityDuration est-il présent ? |
285  * | R | 1 bit | RepetitionDuration est-il présent ? |
286  * | T | 1 bit | TransmissionInterval est-il présent ? |
287  * | I | 1 bit | RepetitionInterval est-il présent ? |
288  * | S | 1 bit | Situation est-il présent ? |
289  * | L | 1 bit | Location est-il présent ? |
290  * | C | 1 bit | Alacarte est-il présent ? |
291  * | A | 1 bit | RelevanceDist et RelevanceTD sont-il présent ? |
292  * | F | 1 bit | TrafficClass est-il présent ? |
293  * | X | 7 bits | Réservé |
294  * | OriginatingStationID | 4 octets | DENM.denm.management.actionID.originatingStationID |
295  * | SequenceNumber | 2 octets | DENM.denm.management.actionID.sequenceNumber |
296  * | DetectionTime | 8 octets | DENM.denm.management.detectionTime |
297  * | EventPosition | 16 octets | DENM.denm.management.eventPosition en UPER |
298  * | ValidityDuration | 4 octets | DENM.denm.management.validityDuration |
299  * | RepetitionDuration | 2 octets | Durée de la répétition |
300  * | TransmissionInterval | 2 octets | DENM.denm.management.transmissionInterval |
301  * | RepetitionInterval | 2 octets | Intervalle entre deux répétitions |
302  * | SituationLength | 2 octets | Taille du SituationContainer |
303  * | Situation | SituationLength octets | DENM.denm.situation en UPER |
304  * | LocationLength | 2 octets | Taille du LocationContainer |
305  * | Location | LocationLength octets | DENM.denm.location en UPER |
306  * | AlacarteContainer | 2 octets | Taille du AlacarteContainer |
307  * | Alacarate | AlacarteLength octets | DENM.denm.alacarte en UPER |
308  * | RelevanceDist | 1 octet | DENM.denm.management.relevanceDistance |
309  * | RelevanceTD | 1 octet | DENM.denm.management.relevanceTrafficDirection |
310  * | DestinationLatitude | 4 octets signés | Latitude de la zone de destination en 0,1 µ° |
311  * | DestinationLongitude | 4 octets signés | Longitude de la zone de destination en 0,1 µ° |
312  * | DistanceA | 2 octets | Semi petit axe en m |
313  * | DistanceB | 2 octets | Semi grand axe en m |
314  * | Angle | 2 octets | Angle par rapport au Nord en ° |
315  * | TrafficClass | 1 octet | TrafficClass de BTP |
316  * |______________________|________________________|____________________________________________________|
317  */
318 #define LGHT_AppDENM_update_MessageType 1
319 #define LGHT_AppDENM_update_Options 2
320 #define LGHT_AppDENM_update_OriginatingStationID 4
321 #define LGHT_AppDENM_update_SequenceNumber 2
322 #define LGHT_AppDENM_update_DetectionTime 8
323 #define LGHT_AppDENM_update_EventPosition 16
324 #define LGHT_AppDENM_update_ValidityDuration 4
325 #define LGHT_AppDENM_update_RepetitionDuration 2
326 #define LGHT_AppDENM_update_RepetitionInterval 2
327 #define LGHT_AppDENM_update_TransmissionInterval 2
328 #define LGHT_AppDENM_update_SituationLength 2
329 #define LGHT_AppDENM_update_LocationLength 2
330 #define LGHT_AppDENM_update_AlacarteLength 2
331 #define LGHT_AppDENM_update_RelevanceDist 1
332 #define LGHT_AppDENM_update_RelevanceTD 1
333 #define LGHT_AppDENM_update_DestinationLatitude 4
334 #define LGHT_AppDENM_update_DestinationLongitude 4
335 #define LGHT_AppDENM_update_DistanceA 2
336 #define LGHT_AppDENM_update_DistanceB 2
337 #define LGHT_AppDENM_update_Angle 2
338 #define LGHT_AppDENM_update_TrafficClass 1
339 
340 #define OPT_AppDENM_update_ValidityDuration 15
341 #define OPT_AppDENM_update_RepetitionDuration 14
342 #define OPT_AppDENM_update_TransmissionInterval 13
343 #define OPT_AppDENM_update_RepetitionInterval 12
344 #define OPT_AppDENM_update_Situation 11
345 #define OPT_AppDENM_update_Location 10
346 #define OPT_AppDENM_update_Alacarte 9
347 #define OPT_AppDENM_update_Area 8
348 #define OPT_AppDENM_update_TrafficClass 7
349 
350 #define Pos_AppDENM_update_MessageType 0
351 #define Beg_AppDENM_update_Options 1
352 #define End_AppDENM_update_Options Beg_AppDENM_update_Options + \
353  LGHT_AppDENM_update_Options
354 #define Beg_AppDENM_update_OriginatingStationID 3
355 #define End_AppDENM_update_OriginatingStationID Beg_AppDENM_update_OriginatingStationID + \
356  LGHT_AppDENM_update_OriginatingStationID
357 #define Beg_AppDENM_update_SequenceNumber 7
358 #define End_AppDENM_update_SequenceNumber Beg_AppDENM_update_SequenceNumber + \
359  LGHT_AppDENM_update_SequenceNumber
360 #define Beg_AppDENM_update_DetectionTime 9
361 #define End_AppDENM_update_DetectionTime Beg_AppDENM_update_DetectionTime + \
362  LGHT_AppDENM_update_DetectionTime
363 #define Beg_AppDENM_update_EventPosition 17
364 #define End_AppDENM_update_EventPosition Beg_AppDENM_update_EventPosition + \
365  LGHT_AppDENM_update_EventPosition
366 #define Beg_AppDENM_update_ValidityDuration 33
367 #define End_AppDENM_update_ValidityDuration Beg_AppDENM_update_ValidityDuration + \
368  LGHT_AppDENM_update_ValidityDuration
369 #define Beg_AppDENM_update_RepetitionDuration 33
370 #define End_AppDENM_update_RepetitionDuration Beg_AppDENM_update_RepetitionDuration + \
371  LGHT_AppDENM_update_RepetitionDuration
372 #define Beg_AppDENM_update_TransmissionInterval 33
373 #define End_AppDENM_update_TransmissionInterval Beg_AppDENM_update_TransmissionInterval + \
374  LGHT_AppDENM_update_TransmissionInterval
375 #define Beg_AppDENM_update_RepetitionInterval 33
376 #define End_AppDENM_update_RepetitionInterval Beg_AppDENM_update_RepetitionInterval + \
377  LGHT_AppDENM_update_RepetitionInterval
378 #define Beg_AppDENM_update_SituationLength 33
379 #define End_AppDENM_update_SituationLength Beg_AppDENM_update_SituationLength + \
380  LGHT_AppDENM_update_SituationLength
381 #define Beg_AppDENM_update_Situation 35
382 #define End_AppDENM_update_Situation Beg_AppDENM_update_Situation
383 #define Beg_AppDENM_update_LocationLength 33
384 #define End_AppDENM_update_LocationLength Beg_AppDENM_update_LocationLength + \
385  LGHT_AppDENM_update_LocationLength
386 #define Beg_AppDENM_update_Location 35
387 #define End_AppDENM_update_Location Beg_AppDENM_update_Location
388 #define Beg_AppDENM_update_AlacarteLength 33
389 #define End_AppDENM_update_AlacarteLength Beg_AppDENM_update_AlacarteLength + \
390  LGHT_AppDENM_update_AlacarteLength
391 #define Beg_AppDENM_update_Alacarte 35
392 #define End_AppDENM_update_Alacarte Beg_AppDENM_update_Alacarte
393 #define Pos_AppDENM_update_RelevanceDist 33
394 #define Pos_AppDENM_update_RelevanceTD 34
395 #define Beg_AppDENM_update_DestinationLatitude 33
396 #define End_AppDENM_update_DestinationLatitude Beg_AppDENM_update_DestinationLatitude + \
397  LGHT_AppDENM_update_DestinationLatitude
398 #define Beg_AppDENM_update_DestinationLongitude 37
399 #define End_AppDENM_update_DestinationLongitude Beg_AppDENM_update_DestinationLongitude + \
400  LGHT_AppDENM_update_DestinationLongitude
401 #define Beg_AppDENM_update_DistanceA 42
402 #define End_AppDENM_update_DistanceA Beg_AppDENM_update_DistanceA + \
403  LGHT_AppDENM_update_DistanceA
404 #define Beg_AppDENM_update_DistanceB 44
405 #define End_AppDENM_update_DistanceB Beg_AppDENM_update_DistanceB + \
406  LGHT_AppDENM_update_DistanceB
407 #define Beg_AppDENM_update_Angle 46
408 #define End_AppDENM_update_Angle Beg_AppDENM_update_Angle + \
409  LGHT_AppDENM_update_Angle
410 #define Pos_AppDENM_update_TrafficClass 48
411 
412 /*
413  * AppDENM_update
414  * --------------
415  *
416  * 0 1 2 3
417  * 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
418  * ________________ _ _ _ _ _ _ ___ ______________________________
419  * | | | | | | | | | :
420  * | MessageType |V|R|T|I|A|F| X | OriginatingStationID :
421  * |________________|_|_|_|_|_|_|___|______________________________:
422  * : | |
423  * : … | SequenceNumber |
424  * :________________________________|______________________________|
425  * | :
426  * | DetectionTime :
427  * |_______________________________________________________________:
428  * : |
429  * : … |
430  * :_______________________________________________________________|
431  * | :
432  * | … :
433  * |_______________________________________________________________:
434  * : :
435  * : EventPosition :
436  * :_______________________________________________________________:
437  * : :
438  * : … :
439  * :_______________________________________________________________:
440  * : |
441  * : … |
442  * :_______________________________________________________________|
443  * | |
444  * | ValidityDuration |
445  * |_______________________________________________________________|
446  * | | |
447  * | RepetitionDuration | TransmissionInterval |
448  * |_______________________________|________________ ______________|
449  * | | | |
450  * | RepetitionInterval | RelevanceDist | RelevanceTD |
451  * |_______________________________|________________|______________|
452  * | |
453  * | DestinationLatitude |
454  * |_______________________________________________________________|
455  * | |
456  * | DestinationLongitude |
457  * |________________________________ ______________________________|
458  * | | |
459  * | DistanceB | DistanceA |
460  * |________________________________|_______________ ______________|
461  * | | |
462  * | Angle | TrafficClass |
463  * |________________ _______________|_______________|
464  *
465  * ____________________________________________________________________________________________________
466  * | | | |
467  * | Nom | Taille | Valeur |
468  * |______________________|________________________|____________________________________________________|
469  * | | | |
470  * | MessageType | 1 octet | 0x54 |
471  * | V | 1 bit | ValidityDuration est-il présent ? |
472  * | R | 1 bit | RepetitionDuration est-il présent ? |
473  * | T | 1 bit | TransmissionInterval est-il présent ? |
474  * | I | 1 bit | RepetitionInterval est-il présent ? |
475  * | A | 1 bit | RelevanceDist et RelevanceTD sont-il présent ? |
476  * | F | 1 bit | TrafficClass est-il présent ? |
477  * | X | 2 bits | Réservé |
478  * | OriginatingStationID | 4 octets | DENM.denm.management.actionID.originatingStationID |
479  * | SequenceNumber | 2 octets | DENM.denm.management.actionID.sequenceNumber |
480  * | DetectionTime | 8 octets | DENM.denm.management.detectionTime |
481  * | EventPosition | 16 octets | DENM.denm.management.eventPosition en UPER |
482  * | ValidityDuration | 4 octets | DENM.denm.management.validityDuration |
483  * | RepetitionDuration | 2 octets | Durée de la répétition |
484  * | TransmissionInterval | 2 octets | DENM.denm.management.transmissionInterval |
485  * | RepetitionInterval | 2 octets | Intervalle entre deux répétitions |
486  * | RelevanceDist | 1 octet | DENM.denm.management.relevanceDistance |
487  * | RelevanceTD | 1 octet | DENM.denm.management.relevanceTrafficDirection |
488  * | DestinationLatitude | 4 octets signés | Latitude de la zone de destination en 0,1 µ° |
489  * | DestinationLongitude | 4 octets signés | Longitude de la zone de destination en 0,1 µ° |
490  * | DistanceA | 2 octets | Semi petit axe en m |
491  * | DistanceB | 2 octets | Semi grand axe en m |
492  * | Angle | 2 octets | Angle par rapport au Nord en ° |
493  * | TrafficClass | 1 octet | TrafficClass de BTP |
494  * |______________________|________________________|____________________________________________________|
495  */
496 #define LGHT_AppDENM_termination_MessageType 1
497 #define LGHT_AppDENM_termination_Options 2
498 #define LGHT_AppDENM_termination_OriginatingStationID 4
499 #define LGHT_AppDENM_termination_SequenceNumber 2
500 #define LGHT_AppDENM_termination_DetectionTime 8
501 #define LGHT_AppDENM_termination_EventPosition 16
502 #define LGHT_AppDENM_termination_ValidityDuration 4
503 #define LGHT_AppDENM_termination_RepetitionDuration 2
504 #define LGHT_AppDENM_termination_RepetitionInterval 2
505 #define LGHT_AppDENM_termination_TransmissionInterval 2
506 #define LGHT_AppDENM_termination_RelevanceDist 1
507 #define LGHT_AppDENM_termination_RelevanceTD 1
508 #define LGHT_AppDENM_termination_DestinationLatitude 4
509 #define LGHT_AppDENM_termination_DestinationLongitude 4
510 #define LGHT_AppDENM_termination_DistanceA 2
511 #define LGHT_AppDENM_termination_DistanceB 2
512 #define LGHT_AppDENM_termination_Angle 2
513 #define LGHT_AppDENM_termination_TrafficClass 1
514 
515 #define OPT_AppDENM_termination_ValidityDuration 5
516 #define OPT_AppDENM_termination_RepetitionDuration 4
517 #define OPT_AppDENM_termination_TransmissionInterval 3
518 #define OPT_AppDENM_termination_RepetitionInterval 2
519 #define OPT_AppDENM_termination_Area 1
520 #define OPT_AppDENM_termination_TrafficClass 0
521 
522 #define Pos_AppDENM_termination_MessageType 0
523 #define Pos_AppDENM_termination_Options 1
524 #define Beg_AppDENM_termination_DetectionTime 2
525 #define End_AppDENM_termination_DetectionTime Beg_AppDENM_termination_DetectionTime + \
526  LGHT_AppDENM_termination_DetectionTime
527 #define Beg_AppDENM_termination_EventPosition 10
528 #define End_AppDENM_termination_EventPosition Beg_AppDENM_termination_EventPosition + \
529  LGHT_AppDENM_termination_EventPosition
530 #define Beg_AppDENM_termination_ValidityDuration 26
531 #define End_AppDENM_termination_ValidityDuration Beg_AppDENM_termination_ValidityDuration + \
532  LGHT_AppDENM_termination_ValidityDuration
533 #define Beg_AppDENM_termination_RepetitionDuration 26
534 #define End_AppDENM_termination_RepetitionDuration Beg_AppDENM_termination_RepetitionDuration + \
535  LGHT_AppDENM_termination_RepetitionDuration
536 #define Beg_AppDENM_termination_TransmissionInterval 26
537 #define End_AppDENM_termination_TransmissionInterval Beg_AppDENM_termination_TransmissionInterval + \
538  LGHT_AppDENM_termination_TransmissionInterval
539 #define Beg_AppDENM_termination_RepetitionInterval 26
540 #define End_AppDENM_termination_RepetitionInterval Beg_AppDENM_termination_RepetitionInterval + \
541  LGHT_AppDENM_termination_RepetitionInterval
542 #define Pos_AppDENM_termination_RelevanceDist 26
543 #define Pos_AppDENM_termination_RelevanceTD 27
544 #define Beg_AppDENM_termination_DestinationLatitude 26
545 #define End_AppDENM_termination_DestinationLatitude Beg_AppDENM_termination_DestinationLatitude + \
546  LGHT_AppDENM_termination_DestinationLatitude
547 #define Beg_AppDENM_termination_DestinationLongitude 30
548 #define End_AppDENM_termination_DestinationLongitude Beg_AppDENM_termination_DestinationLongitude + \
549  LGHT_AppDENM_termination_DestinationLongitude
550 #define Beg_AppDENM_termination_DistanceA 34
551 #define End_AppDENM_termination_DistanceA Beg_AppDENM_termination_DistanceA + \
552  LGHT_AppDENM_termination_DistanceA
553 #define Beg_AppDENM_termination_DistanceB 36
554 #define End_AppDENM_termination_DistanceB Beg_AppDENM_termination_DistanceB + \
555  LGHT_AppDENM_termination_DistanceB
556 #define Beg_AppDENM_termination_Angle 38
557 #define End_AppDENM_termination_Angle Beg_AppDENM_termination_Angle + \
558  LGHT_AppDENM_termination_Angle
559 #define Pos_AppDENM_termination_TrafficClass 40
560 #endif // facilitiesConstantes_H
561