src
cam_ts_TrafficRule.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 "ETSI-ITS-CDD"
4
* found in "/input/ETSI-ITS-CDD.asn"
5
* `asn1c -fcompound-names -fprefix=cam_ts_ -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-example -gen-UPER -gen-JER`
6
*/
7
8
#include "
etsi_its_cam_ts_coding/cam_ts_TrafficRule.h
"
9
10
/*
11
* This type is implemented using NativeEnumerated,
12
* so here we adjust the DEF accordingly.
13
*/
14
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
15
asn_per_constraints_t
asn_PER_type_cam_ts_TrafficRule_constr_1
CC_NOTUSED
= {
16
{ APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 }
/* (0..3,...) */
,
17
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
18
0, 0
/* No PER value map */
19
};
20
#endif
/* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
21
static
const
asn_INTEGER_enum_map_t
asn_MAP_cam_ts_TrafficRule_value2enum_1
[] = {
22
{ 0, 9,
"noPassing"
},
23
{ 1, 18,
"noPassingForTrucks"
},
24
{ 2, 11,
"passToRight"
},
25
{ 3, 10,
"passToLeft"
},
26
{ 4, 17,
"passToLeftOrRight"
}
27
/* This list is extensible */
28
};
29
static
const
unsigned
int
asn_MAP_cam_ts_TrafficRule_enum2value_1
[] = {
30
0,
/* noPassing(0) */
31
1,
/* noPassingForTrucks(1) */
32
3,
/* passToLeft(3) */
33
4,
/* passToLeftOrRight(4) */
34
2
/* passToRight(2) */
35
/* This list is extensible */
36
};
37
const
asn_INTEGER_specifics_t
asn_SPC_cam_ts_TrafficRule_specs_1
= {
38
asn_MAP_cam_ts_TrafficRule_value2enum_1
,
/* "tag" => N; sorted by tag */
39
asn_MAP_cam_ts_TrafficRule_enum2value_1
,
/* N => "tag"; sorted by N */
40
5,
/* Number of elements in the maps */
41
5,
/* Extensions before this member */
42
1,
/* Strict enumeration */
43
0,
/* Native long size */
44
0
45
};
46
static
const
ber_tlv_tag_t
asn_DEF_cam_ts_TrafficRule_tags_1
[] = {
47
(
ASN_TAG_CLASS_UNIVERSAL
| (10 << 2))
48
};
49
asn_TYPE_descriptor_t
asn_DEF_cam_ts_TrafficRule
= {
50
"TrafficRule"
,
51
"TrafficRule"
,
52
&
asn_OP_NativeEnumerated
,
53
asn_DEF_cam_ts_TrafficRule_tags_1
,
54
sizeof
(
asn_DEF_cam_ts_TrafficRule_tags_1
)
55
/
sizeof
(
asn_DEF_cam_ts_TrafficRule_tags_1
[0]),
/* 1 */
56
asn_DEF_cam_ts_TrafficRule_tags_1
,
/* Same as above */
57
sizeof
(
asn_DEF_cam_ts_TrafficRule_tags_1
)
58
/
sizeof
(
asn_DEF_cam_ts_TrafficRule_tags_1
[0]),
/* 1 */
59
{
60
#if !defined(ASN_DISABLE_OER_SUPPORT)
61
0,
62
#endif
/* !defined(ASN_DISABLE_OER_SUPPORT) */
63
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
64
&
asn_PER_type_cam_ts_TrafficRule_constr_1
,
65
#endif
/* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
66
#if !defined(ASN_DISABLE_JER_SUPPORT)
67
0,
68
#endif
/* !defined(ASN_DISABLE_JER_SUPPORT) */
69
NativeEnumerated_constraint
70
},
71
0, 0,
/* Defined elsewhere */
72
&
asn_SPC_cam_ts_TrafficRule_specs_1
/* Additional specs */
73
};
74
ber_tlv_tag_t
unsigned ber_tlv_tag_t
Definition:
ber_tlv_tag.h:18
ASN_TAG_CLASS_UNIVERSAL
@ ASN_TAG_CLASS_UNIVERSAL
Definition:
ber_tlv_tag.h:13
CC_NOTUSED
asn_per_constraints_t asn_PER_type_cam_ts_TrafficRule_constr_1 CC_NOTUSED
Definition:
cam_ts_TrafficRule.c:15
cam_ts_TrafficRule.h
NativeEnumerated_constraint
#define NativeEnumerated_constraint
Definition:
NativeEnumerated.h:34
asn_TYPE_descriptor_s
Definition:
constr_TYPE.h:224
asn_PER_type_cam_ts_TrafficRule_constr_1
asn_per_constraints_t asn_PER_type_cam_ts_TrafficRule_constr_1
asn_OP_NativeEnumerated
asn_TYPE_operation_t asn_OP_NativeEnumerated
Definition:
NativeEnumerated.c:21
asn_DEF_cam_ts_TrafficRule_tags_1
static const ber_tlv_tag_t asn_DEF_cam_ts_TrafficRule_tags_1[]
Definition:
cam_ts_TrafficRule.c:46
asn_INTEGER_specifics_s
Definition:
INTEGER.h:28
asn_MAP_cam_ts_TrafficRule_value2enum_1
static const asn_INTEGER_enum_map_t asn_MAP_cam_ts_TrafficRule_value2enum_1[]
Definition:
cam_ts_TrafficRule.c:21
asn_SPC_cam_ts_TrafficRule_specs_1
const asn_INTEGER_specifics_t asn_SPC_cam_ts_TrafficRule_specs_1
Definition:
cam_ts_TrafficRule.c:37
asn_MAP_cam_ts_TrafficRule_enum2value_1
static const unsigned int asn_MAP_cam_ts_TrafficRule_enum2value_1[]
Definition:
cam_ts_TrafficRule.c:29
asn_DEF_cam_ts_TrafficRule
asn_TYPE_descriptor_t asn_DEF_cam_ts_TrafficRule
Definition:
cam_ts_TrafficRule.c:49
asn_per_constraints_s
Definition:
per_support.h:30
asn_INTEGER_enum_map_s
Definition:
INTEGER.h:21
etsi_its_cam_ts_coding
Author(s): Jean-Pierre Busch
, Guido Küppers
, Lennart Reiher
autogenerated on Sun May 18 2025 02:21:23