src
cpm_ts_VehicleRole.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=cpm_ts_ -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-example -gen-UPER -gen-JER`
6
*/
7
8
#include "
etsi_its_cpm_ts_coding/cpm_ts_VehicleRole.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
static
asn_per_constraints_t
asn_PER_type_cpm_ts_VehicleRole_constr_1
CC_NOTUSED
= {
16
{ APC_CONSTRAINED, 4, 4, 0, 15 }
/* (0..15) */
,
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_cpm_ts_VehicleRole_value2enum_1
[] = {
22
{ 0, 7,
"default"
},
23
{ 1, 15,
"publicTransport"
},
24
{ 2, 16,
"specialTransport"
},
25
{ 3, 14,
"dangerousGoods"
},
26
{ 4, 8,
"roadWork"
},
27
{ 5, 6,
"rescue"
},
28
{ 6, 9,
"emergency"
},
29
{ 7, 9,
"safetyCar"
},
30
{ 8, 11,
"agriculture"
},
31
{ 9, 10,
"commercial"
},
32
{ 10, 8,
"military"
},
33
{ 11, 12,
"roadOperator"
},
34
{ 12, 4,
"taxi"
},
35
{ 13, 9,
"reserved1"
},
36
{ 14, 9,
"reserved2"
},
37
{ 15, 9,
"reserved3"
}
38
};
39
static
const
unsigned
int
asn_MAP_cpm_ts_VehicleRole_enum2value_1
[] = {
40
8,
/* agriculture(8) */
41
9,
/* commercial(9) */
42
3,
/* dangerousGoods(3) */
43
0,
/* default(0) */
44
6,
/* emergency(6) */
45
10,
/* military(10) */
46
1,
/* publicTransport(1) */
47
5,
/* rescue(5) */
48
13,
/* reserved1(13) */
49
14,
/* reserved2(14) */
50
15,
/* reserved3(15) */
51
11,
/* roadOperator(11) */
52
4,
/* roadWork(4) */
53
7,
/* safetyCar(7) */
54
2,
/* specialTransport(2) */
55
12
/* taxi(12) */
56
};
57
static
const
asn_INTEGER_specifics_t
asn_SPC_cpm_ts_VehicleRole_specs_1
= {
58
asn_MAP_cpm_ts_VehicleRole_value2enum_1
,
/* "tag" => N; sorted by tag */
59
asn_MAP_cpm_ts_VehicleRole_enum2value_1
,
/* N => "tag"; sorted by N */
60
16,
/* Number of elements in the maps */
61
0,
/* Enumeration is not extensible */
62
1,
/* Strict enumeration */
63
0,
/* Native long size */
64
0
65
};
66
static
const
ber_tlv_tag_t
asn_DEF_cpm_ts_VehicleRole_tags_1
[] = {
67
(
ASN_TAG_CLASS_UNIVERSAL
| (10 << 2))
68
};
69
asn_TYPE_descriptor_t
asn_DEF_cpm_ts_VehicleRole
= {
70
"VehicleRole"
,
71
"VehicleRole"
,
72
&
asn_OP_NativeEnumerated
,
73
asn_DEF_cpm_ts_VehicleRole_tags_1
,
74
sizeof
(
asn_DEF_cpm_ts_VehicleRole_tags_1
)
75
/
sizeof
(
asn_DEF_cpm_ts_VehicleRole_tags_1
[0]),
/* 1 */
76
asn_DEF_cpm_ts_VehicleRole_tags_1
,
/* Same as above */
77
sizeof
(
asn_DEF_cpm_ts_VehicleRole_tags_1
)
78
/
sizeof
(
asn_DEF_cpm_ts_VehicleRole_tags_1
[0]),
/* 1 */
79
{
80
#if !defined(ASN_DISABLE_OER_SUPPORT)
81
0,
82
#endif
/* !defined(ASN_DISABLE_OER_SUPPORT) */
83
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
84
&asn_PER_type_cpm_ts_VehicleRole_constr_1,
85
#endif
/* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
86
#if !defined(ASN_DISABLE_JER_SUPPORT)
87
0,
88
#endif
/* !defined(ASN_DISABLE_JER_SUPPORT) */
89
NativeEnumerated_constraint
90
},
91
0, 0,
/* Defined elsewhere */
92
&
asn_SPC_cpm_ts_VehicleRole_specs_1
/* Additional specs */
93
};
94
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
NativeEnumerated_constraint
#define NativeEnumerated_constraint
Definition:
NativeEnumerated.h:34
asn_MAP_cpm_ts_VehicleRole_enum2value_1
static const unsigned int asn_MAP_cpm_ts_VehicleRole_enum2value_1[]
Definition:
cpm_ts_VehicleRole.c:39
asn_TYPE_descriptor_s
Definition:
constr_TYPE.h:224
asn_OP_NativeEnumerated
asn_TYPE_operation_t asn_OP_NativeEnumerated
Definition:
NativeEnumerated.c:21
asn_DEF_cpm_ts_VehicleRole_tags_1
static const ber_tlv_tag_t asn_DEF_cpm_ts_VehicleRole_tags_1[]
Definition:
cpm_ts_VehicleRole.c:66
asn_INTEGER_specifics_s
Definition:
INTEGER.h:28
CC_NOTUSED
static asn_per_constraints_t asn_PER_type_cpm_ts_VehicleRole_constr_1 CC_NOTUSED
Definition:
cpm_ts_VehicleRole.c:15
asn_MAP_cpm_ts_VehicleRole_value2enum_1
static const asn_INTEGER_enum_map_t asn_MAP_cpm_ts_VehicleRole_value2enum_1[]
Definition:
cpm_ts_VehicleRole.c:21
asn_SPC_cpm_ts_VehicleRole_specs_1
static const asn_INTEGER_specifics_t asn_SPC_cpm_ts_VehicleRole_specs_1
Definition:
cpm_ts_VehicleRole.c:57
asn_per_constraints_s
Definition:
per_support.h:30
asn_DEF_cpm_ts_VehicleRole
asn_TYPE_descriptor_t asn_DEF_cpm_ts_VehicleRole
Definition:
cpm_ts_VehicleRole.c:69
cpm_ts_VehicleRole.h
asn_INTEGER_enum_map_s
Definition:
INTEGER.h:21
etsi_its_cpm_ts_coding
Author(s): Jean-Pierre Busch
, Guido Küppers
, Lennart Reiher
autogenerated on Sun May 18 2025 02:22:38