spatem_ts_FreightContainerData.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "AVIAEINumberingAndDataStructures"
4  * found in "/input/ISO14816_AVIAEINumberingAndDataStructures.asn"
5  * `asn1c -fcompound-names -fprefix=spatem_ts_ -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-example -gen-UPER -gen-JER`
6  */
7 
9 
10 static int
12  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13  const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
14  size_t size;
15 
16  if(!sptr) {
17  ASN__CTFAIL(app_key, td, sptr,
18  "%s: value not given (%s:%d)",
19  td->name, __FILE__, __LINE__);
20  return -1;
21  }
22 
23  if(st->size > 0) {
24  /* Size in bits */
25  size = 8 * st->size - (st->bits_unused & 0x07);
26  } else {
27  size = 0;
28  }
29 
30  if((size == 19UL)) {
31  /* Constraint check succeeded */
32  return 0;
33  } else {
34  ASN__CTFAIL(app_key, td, sptr,
35  "%s: constraint failed (%s:%d)",
36  td->name, __FILE__, __LINE__);
37  return -1;
38  }
39 }
40 
41 static int
43  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
44  long value;
45 
46  if(!sptr) {
47  ASN__CTFAIL(app_key, td, sptr,
48  "%s: value not given (%s:%d)",
49  td->name, __FILE__, __LINE__);
50  return -1;
51  }
52 
53  value = *(const long *)sptr;
54 
55  if((value >= 0L && value <= 1000000L)) {
56  /* Constraint check succeeded */
57  return 0;
58  } else {
59  ASN__CTFAIL(app_key, td, sptr,
60  "%s: constraint failed (%s:%d)",
61  td->name, __FILE__, __LINE__);
62  return -1;
63  }
64 }
65 
66 static int
68  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
69  long value;
70 
71  if(!sptr) {
72  ASN__CTFAIL(app_key, td, sptr,
73  "%s: value not given (%s:%d)",
74  td->name, __FILE__, __LINE__);
75  return -1;
76  }
77 
78  value = *(const long *)sptr;
79 
80  if((value >= 0L && value <= 10L)) {
81  /* Constraint check succeeded */
82  return 0;
83  } else {
84  ASN__CTFAIL(app_key, td, sptr,
85  "%s: constraint failed (%s:%d)",
86  td->name, __FILE__, __LINE__);
87  return -1;
88  }
89 }
90 
91 static int
93  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
94  long value;
95 
96  if(!sptr) {
97  ASN__CTFAIL(app_key, td, sptr,
98  "%s: value not given (%s:%d)",
99  td->name, __FILE__, __LINE__);
100  return -1;
101  }
102 
103  value = *(const long *)sptr;
104 
105  if((value >= 1L && value <= 2000L)) {
106  /* Constraint check succeeded */
107  return 0;
108  } else {
109  ASN__CTFAIL(app_key, td, sptr,
110  "%s: constraint failed (%s:%d)",
111  td->name, __FILE__, __LINE__);
112  return -1;
113  }
114 }
115 
116 static int
118  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
119  long value;
120 
121  if(!sptr) {
122  ASN__CTFAIL(app_key, td, sptr,
123  "%s: value not given (%s:%d)",
124  td->name, __FILE__, __LINE__);
125  return -1;
126  }
127 
128  value = *(const long *)sptr;
129 
130  if((value >= 1L && value <= 500L)) {
131  /* Constraint check succeeded */
132  return 0;
133  } else {
134  ASN__CTFAIL(app_key, td, sptr,
135  "%s: constraint failed (%s:%d)",
136  td->name, __FILE__, __LINE__);
137  return -1;
138  }
139 }
140 
141 static int
143  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
144  long value;
145 
146  if(!sptr) {
147  ASN__CTFAIL(app_key, td, sptr,
148  "%s: value not given (%s:%d)",
149  td->name, __FILE__, __LINE__);
150  return -1;
151  }
152 
153  value = *(const long *)sptr;
154 
155  if((value >= 200L && value <= 300L)) {
156  /* Constraint check succeeded */
157  return 0;
158  } else {
159  ASN__CTFAIL(app_key, td, sptr,
160  "%s: constraint failed (%s:%d)",
161  td->name, __FILE__, __LINE__);
162  return -1;
163  }
164 }
165 
166 static int
168  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
169  long value;
170 
171  if(!sptr) {
172  ASN__CTFAIL(app_key, td, sptr,
173  "%s: value not given (%s:%d)",
174  td->name, __FILE__, __LINE__);
175  return -1;
176  }
177 
178  value = *(const long *)sptr;
179 
180  if((value >= 0L && value <= 127L)) {
181  /* Constraint check succeeded */
182  return 0;
183  } else {
184  ASN__CTFAIL(app_key, td, sptr,
185  "%s: constraint failed (%s:%d)",
186  td->name, __FILE__, __LINE__);
187  return -1;
188  }
189 }
190 
191 static int
193  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
194  long value;
195 
196  if(!sptr) {
197  ASN__CTFAIL(app_key, td, sptr,
198  "%s: value not given (%s:%d)",
199  td->name, __FILE__, __LINE__);
200  return -1;
201  }
202 
203  value = *(const long *)sptr;
204 
205  if((value >= 19L && value <= 500L)) {
206  /* Constraint check succeeded */
207  return 0;
208  } else {
209  ASN__CTFAIL(app_key, td, sptr,
210  "%s: constraint failed (%s:%d)",
211  td->name, __FILE__, __LINE__);
212  return -1;
213  }
214 }
215 
216 static int
218  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
219  long value;
220 
221  if(!sptr) {
222  ASN__CTFAIL(app_key, td, sptr,
223  "%s: value not given (%s:%d)",
224  td->name, __FILE__, __LINE__);
225  return -1;
226  }
227 
228  value = *(const long *)sptr;
229 
230  if((value >= 0L && value <= 99L)) {
231  /* Constraint check succeeded */
232  return 0;
233  } else {
234  ASN__CTFAIL(app_key, td, sptr,
235  "%s: constraint failed (%s:%d)",
236  td->name, __FILE__, __LINE__);
237  return -1;
238  }
239 }
240 
241 static int
243  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
244  const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
245  size_t size;
246 
247  if(!sptr) {
248  ASN__CTFAIL(app_key, td, sptr,
249  "%s: value not given (%s:%d)",
250  td->name, __FILE__, __LINE__);
251  return -1;
252  }
253 
254  if(st->size > 0) {
255  /* Size in bits */
256  size = 8 * st->size - (st->bits_unused & 0x07);
257  } else {
258  size = 0;
259  }
260 
261  if((size == 3UL)) {
262  /* Constraint check succeeded */
263  return 0;
264  } else {
265  ASN__CTFAIL(app_key, td, sptr,
266  "%s: constraint failed (%s:%d)",
267  td->name, __FILE__, __LINE__);
268  return -1;
269  }
270 }
271 
272 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
273 static asn_per_constraints_t asn_PER_memb_spatem_ts_ownerCode_constr_2 CC_NOTUSED = {
274  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
275  { APC_CONSTRAINED, 0, 0, 19, 19 } /* (SIZE(19..19)) */,
276  0, 0 /* No PER value map */
277 };
278 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
279 #if !defined(ASN_DISABLE_JER_SUPPORT)
280 static asn_jer_constraints_t asn_JER_memb_spatem_ts_ownerCode_constr_2 CC_NOTUSED = {
281  19};
282 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
283 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
284 static asn_per_constraints_t asn_PER_memb_spatem_ts_serialNumber_constr_3 CC_NOTUSED = {
285  { APC_CONSTRAINED, 20, -1, 0, 1000000 } /* (0..1000000) */,
286  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
287  0, 0 /* No PER value map */
288 };
289 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
290 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
291 static asn_per_constraints_t asn_PER_memb_spatem_ts_checkDigit_constr_4 CC_NOTUSED = {
292  { APC_CONSTRAINED, 4, 4, 0, 10 } /* (0..10) */,
293  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
294  0, 0 /* No PER value map */
295 };
296 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
297 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
298 static asn_per_constraints_t asn_PER_memb_spatem_ts_length_constr_5 CC_NOTUSED = {
299  { APC_CONSTRAINED, 11, 11, 1, 2000 } /* (1..2000) */,
300  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
301  0, 0 /* No PER value map */
302 };
303 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
304 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
305 static asn_per_constraints_t asn_PER_memb_spatem_ts_height_constr_6 CC_NOTUSED = {
306  { APC_CONSTRAINED, 9, 9, 1, 500 } /* (1..500) */,
307  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
308  0, 0 /* No PER value map */
309 };
310 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
311 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
312 static asn_per_constraints_t asn_PER_memb_spatem_ts_width_constr_7 CC_NOTUSED = {
313  { APC_CONSTRAINED, 7, 7, 200, 300 } /* (200..300) */,
314  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
315  0, 0 /* No PER value map */
316 };
317 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
318 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
319 static asn_per_constraints_t asn_PER_memb_spatem_ts_containerTypeCode_constr_8 CC_NOTUSED = {
320  { APC_CONSTRAINED, 7, 7, 0, 127 } /* (0..127) */,
321  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
322  0, 0 /* No PER value map */
323 };
324 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
325 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
326 static asn_per_constraints_t asn_PER_memb_spatem_ts_maximumGrossMass_constr_9 CC_NOTUSED = {
327  { APC_CONSTRAINED, 9, 9, 19, 500 } /* (19..500) */,
328  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
329  0, 0 /* No PER value map */
330 };
331 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
332 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
333 static asn_per_constraints_t asn_PER_memb_spatem_ts_tareMass_constr_10 CC_NOTUSED = {
334  { APC_CONSTRAINED, 7, 7, 0, 99 } /* (0..99) */,
335  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
336  0, 0 /* No PER value map */
337 };
338 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
339 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
340 static asn_per_constraints_t asn_PER_memb_spatem_ts_fill_constr_11 CC_NOTUSED = {
341  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
342  { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */,
343  0, 0 /* No PER value map */
344 };
345 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
346 #if !defined(ASN_DISABLE_JER_SUPPORT)
347 static asn_jer_constraints_t asn_JER_memb_spatem_ts_fill_constr_11 CC_NOTUSED = {
348  3};
349 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
351  { ATF_NOFLAGS, 0, offsetof(struct spatem_ts_FreightContainerData, ownerCode),
352  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
353  -1, /* IMPLICIT tag at current level */
355  0,
356  {
357 #if !defined(ASN_DISABLE_OER_SUPPORT)
358  0,
359 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
360 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
361  &asn_PER_memb_spatem_ts_ownerCode_constr_2,
362 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
363 #if !defined(ASN_DISABLE_JER_SUPPORT)
364  &asn_JER_memb_spatem_ts_ownerCode_constr_2,
365 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
367  },
368  0, 0, /* No default value */
369  "ownerCode"
370  },
371  { ATF_NOFLAGS, 0, offsetof(struct spatem_ts_FreightContainerData, serialNumber),
372  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
373  -1, /* IMPLICIT tag at current level */
375  0,
376  {
377 #if !defined(ASN_DISABLE_OER_SUPPORT)
378  0,
379 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
380 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
381  &asn_PER_memb_spatem_ts_serialNumber_constr_3,
382 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
383 #if !defined(ASN_DISABLE_JER_SUPPORT)
384  0,
385 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
387  },
388  0, 0, /* No default value */
389  "serialNumber"
390  },
391  { ATF_NOFLAGS, 0, offsetof(struct spatem_ts_FreightContainerData, checkDigit),
392  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
393  -1, /* IMPLICIT tag at current level */
395  0,
396  {
397 #if !defined(ASN_DISABLE_OER_SUPPORT)
398  0,
399 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
400 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
401  &asn_PER_memb_spatem_ts_checkDigit_constr_4,
402 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
403 #if !defined(ASN_DISABLE_JER_SUPPORT)
404  0,
405 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
407  },
408  0, 0, /* No default value */
409  "checkDigit"
410  },
412  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
413  -1, /* IMPLICIT tag at current level */
415  0,
416  {
417 #if !defined(ASN_DISABLE_OER_SUPPORT)
418  0,
419 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
420 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
421  &asn_PER_memb_spatem_ts_length_constr_5,
422 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
423 #if !defined(ASN_DISABLE_JER_SUPPORT)
424  0,
425 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
427  },
428  0, 0, /* No default value */
429  "length"
430  },
432  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
433  -1, /* IMPLICIT tag at current level */
435  0,
436  {
437 #if !defined(ASN_DISABLE_OER_SUPPORT)
438  0,
439 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
440 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
441  &asn_PER_memb_spatem_ts_height_constr_6,
442 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
443 #if !defined(ASN_DISABLE_JER_SUPPORT)
444  0,
445 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
447  },
448  0, 0, /* No default value */
449  "height"
450  },
452  (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
453  -1, /* IMPLICIT tag at current level */
455  0,
456  {
457 #if !defined(ASN_DISABLE_OER_SUPPORT)
458  0,
459 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
460 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
461  &asn_PER_memb_spatem_ts_width_constr_7,
462 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
463 #if !defined(ASN_DISABLE_JER_SUPPORT)
464  0,
465 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
467  },
468  0, 0, /* No default value */
469  "width"
470  },
471  { ATF_NOFLAGS, 0, offsetof(struct spatem_ts_FreightContainerData, containerTypeCode),
472  (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
473  -1, /* IMPLICIT tag at current level */
475  0,
476  {
477 #if !defined(ASN_DISABLE_OER_SUPPORT)
478  0,
479 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
480 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
481  &asn_PER_memb_spatem_ts_containerTypeCode_constr_8,
482 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
483 #if !defined(ASN_DISABLE_JER_SUPPORT)
484  0,
485 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
487  },
488  0, 0, /* No default value */
489  "containerTypeCode"
490  },
491  { ATF_NOFLAGS, 0, offsetof(struct spatem_ts_FreightContainerData, maximumGrossMass),
492  (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
493  -1, /* IMPLICIT tag at current level */
495  0,
496  {
497 #if !defined(ASN_DISABLE_OER_SUPPORT)
498  0,
499 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
500 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
501  &asn_PER_memb_spatem_ts_maximumGrossMass_constr_9,
502 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
503 #if !defined(ASN_DISABLE_JER_SUPPORT)
504  0,
505 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
507  },
508  0, 0, /* No default value */
509  "maximumGrossMass"
510  },
511  { ATF_NOFLAGS, 0, offsetof(struct spatem_ts_FreightContainerData, tareMass),
512  (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
513  -1, /* IMPLICIT tag at current level */
515  0,
516  {
517 #if !defined(ASN_DISABLE_OER_SUPPORT)
518  0,
519 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
520 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
521  &asn_PER_memb_spatem_ts_tareMass_constr_10,
522 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
523 #if !defined(ASN_DISABLE_JER_SUPPORT)
524  0,
525 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
527  },
528  0, 0, /* No default value */
529  "tareMass"
530  },
532  (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
533  -1, /* IMPLICIT tag at current level */
535  0,
536  {
537 #if !defined(ASN_DISABLE_OER_SUPPORT)
538  0,
539 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
540 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
541  &asn_PER_memb_spatem_ts_fill_constr_11,
542 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
543 #if !defined(ASN_DISABLE_JER_SUPPORT)
544  &asn_JER_memb_spatem_ts_fill_constr_11,
545 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
547  },
548  0, 0, /* No default value */
549  "fill"
550  },
551 };
553  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
554 };
556  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ownerCode */
557  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* serialNumber */
558  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* checkDigit */
559  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* length */
560  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* height */
561  { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* width */
562  { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* containerTypeCode */
563  { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* maximumGrossMass */
564  { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* tareMass */
565  { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* fill */
566 };
568  sizeof(struct spatem_ts_FreightContainerData),
571  10, /* Count of tags in the map */
572  0, 0, 0, /* Optional elements (not needed) */
573  -1, /* First extension addition */
574 };
576  "FreightContainerData",
577  "FreightContainerData",
585  {
586 #if !defined(ASN_DISABLE_OER_SUPPORT)
587  0,
588 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
589 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
590  0,
591 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
592 #if !defined(ASN_DISABLE_JER_SUPPORT)
593  0,
594 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
596  },
598  10, /* Elements count */
599  &asn_SPC_spatem_ts_FreightContainerData_specs_1 /* Additional specs */
600 };
601 
asn_OP_SEQUENCE
asn_TYPE_operation_t asn_OP_SEQUENCE
Definition: constr_SEQUENCE.c:9
memb_spatem_ts_serialNumber_constraint_1
static int memb_spatem_ts_serialNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:42
asn_MBR_spatem_ts_FreightContainerData_1
asn_TYPE_member_t asn_MBR_spatem_ts_FreightContainerData_1[]
Definition: spatem_ts_FreightContainerData.c:350
memb_spatem_ts_length_constraint_1
static int memb_spatem_ts_length_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:92
asn_app_constraint_failed_f
void() asn_app_constraint_failed_f(void *application_specific_key, const struct asn_TYPE_descriptor_s *type_descriptor_which_failed, const void *structure_which_failed_ptr, const char *error_message_format,...) CC_PRINTFLIKE(4
Definition: asn_application.h:167
ASN_TAG_CLASS_CONTEXT
@ ASN_TAG_CLASS_CONTEXT
Definition: ber_tlv_tag.h:15
memb_spatem_ts_containerTypeCode_constraint_1
static int memb_spatem_ts_containerTypeCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:167
ber_tlv_tag_t
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_jer_constraints_s
Definition: jer_support.h:18
ASN_TAG_CLASS_UNIVERSAL
@ ASN_TAG_CLASS_UNIVERSAL
Definition: ber_tlv_tag.h:13
asn_TYPE_descriptor_s::name
const char * name
Definition: constr_TYPE.h:225
BIT_STRING_s::size
size_t size
Definition: BIT_STRING.h:16
memb_spatem_ts_width_constraint_1
static int memb_spatem_ts_width_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:142
asn_DEF_spatem_ts_FreightContainerData_tags_1
static const ber_tlv_tag_t asn_DEF_spatem_ts_FreightContainerData_tags_1[]
Definition: spatem_ts_FreightContainerData.c:552
CC_NOTUSED
static asn_per_constraints_t asn_PER_memb_spatem_ts_ownerCode_constr_2 CC_NOTUSED
Definition: spatem_ts_FreightContainerData.c:273
asn_DEF_BIT_STRING
asn_TYPE_descriptor_t asn_DEF_BIT_STRING
Definition: BIT_STRING.c:77
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
BIT_STRING_s
Definition: BIT_STRING.h:14
SEQUENCE_constraint
asn_constr_check_f SEQUENCE_constraint
Definition: constr_SEQUENCE.h:56
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
memb_spatem_ts_ownerCode_constraint_1
static int memb_spatem_ts_ownerCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:11
offsetof
#define offsetof(s, m)
Definition: asn_system.h:132
memb_spatem_ts_checkDigit_constraint_1
static int memb_spatem_ts_checkDigit_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:67
spatem_ts_FreightContainerData::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: spatem_ts_FreightContainerData.h:37
asn_DEF_NativeInteger
asn_TYPE_descriptor_t asn_DEF_NativeInteger
Definition: NativeInteger.c:80
spatem_ts_FreightContainerData.h
memb_spatem_ts_tareMass_constraint_1
static int memb_spatem_ts_tareMass_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:217
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_MAP_spatem_ts_FreightContainerData_tag2el_1
static const asn_TYPE_tag2member_t asn_MAP_spatem_ts_FreightContainerData_tag2el_1[]
Definition: spatem_ts_FreightContainerData.c:555
asn_SEQUENCE_specifics_s
Definition: constr_SEQUENCE.h:14
ASN__CTFAIL
#define ASN__CTFAIL
Definition: constraints.h:57
memb_spatem_ts_fill_constraint_1
static int memb_spatem_ts_fill_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:242
asn_SPC_spatem_ts_FreightContainerData_specs_1
asn_SEQUENCE_specifics_t asn_SPC_spatem_ts_FreightContainerData_specs_1
Definition: spatem_ts_FreightContainerData.c:567
asn_per_constraints_s
Definition: per_support.h:30
memb_spatem_ts_maximumGrossMass_constraint_1
static int memb_spatem_ts_maximumGrossMass_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:192
memb_spatem_ts_height_constraint_1
static int memb_spatem_ts_height_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: spatem_ts_FreightContainerData.c:117
asn_TYPE_member_s
Definition: constr_TYPE.h:272
BIT_STRING_s::bits_unused
int bits_unused
Definition: BIT_STRING.h:18
spatem_ts_FreightContainerData
Definition: spatem_ts_FreightContainerData.h:24
asn_DEF_spatem_ts_FreightContainerData
asn_TYPE_descriptor_t asn_DEF_spatem_ts_FreightContainerData
Definition: spatem_ts_FreightContainerData.c:575


etsi_its_spatem_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:29:28