cpm_ts_VruDeviceUsage.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 
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_VruDeviceUsage_constr_1 CC_NOTUSED = {
16  { APC_CONSTRAINED, 4, 4, 0, 9 } /* (0..9) */,
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) */
22  { 0, 11, "unavailable" },
23  { 1, 5, "other" },
24  { 2, 4, "idle" },
25  { 3, 16, "listeningToAudio" },
26  { 4, 6, "typing" },
27  { 5, 7, "calling" },
28  { 6, 12, "playingGames" },
29  { 7, 7, "reading" },
30  { 8, 7, "viewing" },
31  { 255, 3, "max" }
32 };
33 static const unsigned int asn_MAP_cpm_ts_VruDeviceUsage_enum2value_1[] = {
34  5, /* calling(5) */
35  2, /* idle(2) */
36  3, /* listeningToAudio(3) */
37  9, /* max(255) */
38  1, /* other(1) */
39  6, /* playingGames(6) */
40  7, /* reading(7) */
41  4, /* typing(4) */
42  0, /* unavailable(0) */
43  8 /* viewing(8) */
44 };
46  asn_MAP_cpm_ts_VruDeviceUsage_value2enum_1, /* "tag" => N; sorted by tag */
47  asn_MAP_cpm_ts_VruDeviceUsage_enum2value_1, /* N => "tag"; sorted by N */
48  10, /* Number of elements in the maps */
49  0, /* Enumeration is not extensible */
50  1, /* Strict enumeration */
51  0, /* Native long size */
52  0
53 };
55  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
56 };
58  "VruDeviceUsage",
59  "VruDeviceUsage",
63  /sizeof(asn_DEF_cpm_ts_VruDeviceUsage_tags_1[0]), /* 1 */
64  asn_DEF_cpm_ts_VruDeviceUsage_tags_1, /* Same as above */
66  /sizeof(asn_DEF_cpm_ts_VruDeviceUsage_tags_1[0]), /* 1 */
67  {
68 #if !defined(ASN_DISABLE_OER_SUPPORT)
69  0,
70 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
71 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
72  &asn_PER_type_cpm_ts_VruDeviceUsage_constr_1,
73 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
74 #if !defined(ASN_DISABLE_JER_SUPPORT)
75  0,
76 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
78  },
79  0, 0, /* Defined elsewhere */
80  &asn_SPC_cpm_ts_VruDeviceUsage_specs_1 /* Additional specs */
81 };
82 
asn_MAP_cpm_ts_VruDeviceUsage_value2enum_1
static const asn_INTEGER_enum_map_t asn_MAP_cpm_ts_VruDeviceUsage_value2enum_1[]
Definition: cpm_ts_VruDeviceUsage.c:21
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
asn_DEF_cpm_ts_VruDeviceUsage
asn_TYPE_descriptor_t asn_DEF_cpm_ts_VruDeviceUsage
Definition: cpm_ts_VruDeviceUsage.c:57
asn_MAP_cpm_ts_VruDeviceUsage_enum2value_1
static const unsigned int asn_MAP_cpm_ts_VruDeviceUsage_enum2value_1[]
Definition: cpm_ts_VruDeviceUsage.c:33
asn_DEF_cpm_ts_VruDeviceUsage_tags_1
static const ber_tlv_tag_t asn_DEF_cpm_ts_VruDeviceUsage_tags_1[]
Definition: cpm_ts_VruDeviceUsage.c:54
NativeEnumerated_constraint
#define NativeEnumerated_constraint
Definition: NativeEnumerated.h:34
cpm_ts_VruDeviceUsage.h
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
asn_OP_NativeEnumerated
asn_TYPE_operation_t asn_OP_NativeEnumerated
Definition: NativeEnumerated.c:21
CC_NOTUSED
static asn_per_constraints_t asn_PER_type_cpm_ts_VruDeviceUsage_constr_1 CC_NOTUSED
Definition: cpm_ts_VruDeviceUsage.c:15
asn_INTEGER_specifics_s
Definition: INTEGER.h:28
asn_per_constraints_s
Definition: per_support.h:30
asn_SPC_cpm_ts_VruDeviceUsage_specs_1
static const asn_INTEGER_specifics_t asn_SPC_cpm_ts_VruDeviceUsage_specs_1
Definition: cpm_ts_VruDeviceUsage.c:45
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