vam_ts_Ext1.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=vam_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  long value;
14 
15  if(!sptr) {
16  ASN__CTFAIL(app_key, td, sptr,
17  "%s: value not given (%s:%d)",
18  td->name, __FILE__, __LINE__);
19  return -1;
20  }
21 
22  value = *(const long *)sptr;
23 
24  if((value >= 128L && value <= 16511L)) {
25  /* Constraint check succeeded */
26  return 0;
27  } else {
28  ASN__CTFAIL(app_key, td, sptr,
29  "%s: constraint failed (%s:%d)",
30  td->name, __FILE__, __LINE__);
31  return -1;
32  }
33 }
34 
35 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
36 static asn_per_constraints_t asn_PER_memb_vam_ts_content_constr_2 CC_NOTUSED = {
37  { APC_CONSTRAINED, 14, 14, 128, 16511 } /* (128..16511) */,
38  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
39  0, 0 /* No PER value map */
40 };
41 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
42 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
44  { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
45  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
46  0, 0 /* No PER value map */
47 };
48 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
50  { ATF_NOFLAGS, 0, offsetof(struct vam_ts_Ext1, choice.content),
51  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
52  -1, /* IMPLICIT tag at current level */
54  0,
55  {
56 #if !defined(ASN_DISABLE_OER_SUPPORT)
57  0,
58 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
59 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
60  &asn_PER_memb_vam_ts_content_constr_2,
61 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
62 #if !defined(ASN_DISABLE_JER_SUPPORT)
63  0,
64 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
66  },
67  0, 0, /* No default value */
68  "content"
69  },
70  { ATF_NOFLAGS, 0, offsetof(struct vam_ts_Ext1, choice.extension),
71  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72  +1, /* EXPLICIT tag at current level */
74  0,
75  {
76 #if !defined(ASN_DISABLE_OER_SUPPORT)
77  0,
78 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
79 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
80  0,
81 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
82 #if !defined(ASN_DISABLE_JER_SUPPORT)
83  0,
84 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
85  0
86  },
87  0, 0, /* No default value */
88  "extension"
89  },
90 };
92  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* content */
93  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* extension */
94 };
96  sizeof(struct vam_ts_Ext1),
97  offsetof(struct vam_ts_Ext1, _asn_ctx),
98  offsetof(struct vam_ts_Ext1, present),
99  sizeof(((struct vam_ts_Ext1 *)0)->present),
101  2, /* Count of tags in the map */
102  0, 0,
103  -1 /* Extensions start */
104 };
106  "Ext1",
107  "Ext1",
108  &asn_OP_CHOICE,
109  0, /* No effective tags (pointer) */
110  0, /* No effective tags (count) */
111  0, /* No tags (pointer) */
112  0, /* No tags (count) */
113  {
114 #if !defined(ASN_DISABLE_OER_SUPPORT)
115  0,
116 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
117 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
119 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
120 #if !defined(ASN_DISABLE_JER_SUPPORT)
121  0,
122 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
124  },
126  2, /* Elements count */
127  &asn_SPC_vam_ts_Ext1_specs_1 /* Additional specs */
128 };
129 
asn_OP_CHOICE
asn_TYPE_operation_t asn_OP_CHOICE
Definition: constr_CHOICE.c:8
vam_ts_Ext1::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: vam_ts_Ext1.h:39
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
memb_vam_ts_content_constraint_1
static int memb_vam_ts_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
Definition: vam_ts_Ext1.c:11
ASN_TAG_CLASS_CONTEXT
@ ASN_TAG_CLASS_CONTEXT
Definition: ber_tlv_tag.h:15
asn_MAP_vam_ts_Ext1_tag2el_1
static const asn_TYPE_tag2member_t asn_MAP_vam_ts_Ext1_tag2el_1[]
Definition: vam_ts_Ext1.c:91
asn_TYPE_descriptor_s::name
const char * name
Definition: constr_TYPE.h:225
asn_CHOICE_specifics_s
Definition: constr_CHOICE.h:14
asn_PER_type_vam_ts_Ext1_constr_1
asn_per_constraints_t asn_PER_type_vam_ts_Ext1_constr_1
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
CC_NOTUSED
static asn_per_constraints_t asn_PER_memb_vam_ts_content_constr_2 CC_NOTUSED
Definition: vam_ts_Ext1.c:36
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
asn_MBR_vam_ts_Ext1_1
asn_TYPE_member_t asn_MBR_vam_ts_Ext1_1[]
Definition: vam_ts_Ext1.c:49
offsetof
#define offsetof(s, m)
Definition: asn_system.h:132
asn_DEF_vam_ts_Ext1
asn_TYPE_descriptor_t asn_DEF_vam_ts_Ext1
Definition: vam_ts_Ext1.c:105
asn_DEF_vam_ts_Ext2
asn_TYPE_descriptor_t asn_DEF_vam_ts_Ext2
Definition: vam_ts_Ext2.c:105
vam_ts_Ext1::present
vam_ts_Ext1_PR present
Definition: vam_ts_Ext1.h:32
asn_DEF_NativeInteger
asn_TYPE_descriptor_t asn_DEF_NativeInteger
Definition: NativeInteger.c:80
CHOICE_constraint
asn_constr_check_f CHOICE_constraint
Definition: constr_CHOICE.h:51
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_SPC_vam_ts_Ext1_specs_1
asn_CHOICE_specifics_t asn_SPC_vam_ts_Ext1_specs_1
Definition: vam_ts_Ext1.c:95
ASN__CTFAIL
#define ASN__CTFAIL
Definition: constraints.h:57
asn_per_constraints_s
Definition: per_support.h:30
asn_TYPE_member_s
Definition: constr_TYPE.h:272
vam_ts_Ext1
Definition: vam_ts_Ext1.h:31
vam_ts_Ext1.h


etsi_its_vam_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:30:55