cpm_ts_PathPointPredicted.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 static int asn_DFL_5_cmp_12800(const void *sptr) {
11  const cpm_ts_DeltaAltitude_t *st = sptr;
12 
13  if(!st) {
14  return -1; /* No value is not a default value */
15  }
16 
17  /* Test default value 12800 */
18  return (*st != 12800);
19 }
20 static int asn_DFL_5_set_12800(void **sptr) {
21  cpm_ts_DeltaAltitude_t *st = *sptr;
22 
23  if(!st) {
24  st = (*sptr = CALLOC(1, sizeof(*st)));
25  if(!st) return -1;
26  }
27 
28  /* Install default value 12800 */
29  *st = 12800;
30  return 0;
31 }
32 static int asn_DFL_6_cmp_15(const void *sptr) {
33  const cpm_ts_AltitudeConfidence_t *st = sptr;
34 
35  if(!st) {
36  return -1; /* No value is not a default value */
37  }
38 
39  /* Test default value 15 */
40  return (*st != 15);
41 }
42 static int asn_DFL_6_set_15(void **sptr) {
43  cpm_ts_AltitudeConfidence_t *st = *sptr;
44 
45  if(!st) {
46  st = (*sptr = CALLOC(1, sizeof(*st)));
47  if(!st) return -1;
48  }
49 
50  /* Install default value 15 */
51  *st = 15;
52  return 0;
53 }
55  { ATF_NOFLAGS, 0, offsetof(struct cpm_ts_PathPointPredicted, deltaLatitude),
56  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
57  -1, /* IMPLICIT tag at current level */
59  0,
60  {
61 #if !defined(ASN_DISABLE_OER_SUPPORT)
62  0,
63 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
64 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
65  0,
66 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
67 #if !defined(ASN_DISABLE_JER_SUPPORT)
68  0,
69 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
70  0
71  },
72  0, 0, /* No default value */
73  "deltaLatitude"
74  },
75  { ATF_NOFLAGS, 0, offsetof(struct cpm_ts_PathPointPredicted, deltaLongitude),
76  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
77  -1, /* IMPLICIT tag at current level */
79  0,
80  {
81 #if !defined(ASN_DISABLE_OER_SUPPORT)
82  0,
83 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
84 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
85  0,
86 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
87 #if !defined(ASN_DISABLE_JER_SUPPORT)
88  0,
89 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
90  0
91  },
92  0, 0, /* No default value */
93  "deltaLongitude"
94  },
95  { ATF_POINTER, 3, offsetof(struct cpm_ts_PathPointPredicted, horizontalPositionConfidence),
96  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
97  -1, /* IMPLICIT tag at current level */
99  0,
100  {
101 #if !defined(ASN_DISABLE_OER_SUPPORT)
102  0,
103 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
104 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
105  0,
106 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
107 #if !defined(ASN_DISABLE_JER_SUPPORT)
108  0,
109 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
110  0
111  },
112  0, 0, /* No default value */
113  "horizontalPositionConfidence"
114  },
115  { ATF_POINTER, 2, offsetof(struct cpm_ts_PathPointPredicted, deltaAltitude),
116  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
117  -1, /* IMPLICIT tag at current level */
119  0,
120  {
121 #if !defined(ASN_DISABLE_OER_SUPPORT)
122  0,
123 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
124 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
125  0,
126 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
127 #if !defined(ASN_DISABLE_JER_SUPPORT)
128  0,
129 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
130  0
131  },
132  &asn_DFL_5_cmp_12800, /* Compare DEFAULT 12800 */
133  &asn_DFL_5_set_12800, /* Set DEFAULT 12800 */
134  "deltaAltitude"
135  },
136  { ATF_POINTER, 1, offsetof(struct cpm_ts_PathPointPredicted, altitudeConfidence),
137  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
138  -1, /* IMPLICIT tag at current level */
140  0,
141  {
142 #if !defined(ASN_DISABLE_OER_SUPPORT)
143  0,
144 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
145 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
146  0,
147 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
148 #if !defined(ASN_DISABLE_JER_SUPPORT)
149  0,
150 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
151  0
152  },
153  &asn_DFL_6_cmp_15, /* Compare DEFAULT 15 */
154  &asn_DFL_6_set_15, /* Set DEFAULT 15 */
155  "altitudeConfidence"
156  },
157  { ATF_NOFLAGS, 0, offsetof(struct cpm_ts_PathPointPredicted, pathDeltaTime),
158  (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
159  -1, /* IMPLICIT tag at current level */
161  0,
162  {
163 #if !defined(ASN_DISABLE_OER_SUPPORT)
164  0,
165 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
166 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
167  0,
168 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
169 #if !defined(ASN_DISABLE_JER_SUPPORT)
170  0,
171 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
172  0
173  },
174  0, 0, /* No default value */
175  "pathDeltaTime"
176  },
177 };
178 static const int asn_MAP_cpm_ts_PathPointPredicted_oms_1[] = { 2, 3, 4 };
180  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
181 };
183  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* deltaLatitude */
184  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* deltaLongitude */
185  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* horizontalPositionConfidence */
186  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* deltaAltitude */
187  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* altitudeConfidence */
188  { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* pathDeltaTime */
189 };
191  sizeof(struct cpm_ts_PathPointPredicted),
194  6, /* Count of tags in the map */
195  asn_MAP_cpm_ts_PathPointPredicted_oms_1, /* Optional members */
196  3, 0, /* Root/Additions */
197  6, /* First extension addition */
198 };
200  "PathPointPredicted",
201  "PathPointPredicted",
205  /sizeof(asn_DEF_cpm_ts_PathPointPredicted_tags_1[0]), /* 1 */
206  asn_DEF_cpm_ts_PathPointPredicted_tags_1, /* Same as above */
208  /sizeof(asn_DEF_cpm_ts_PathPointPredicted_tags_1[0]), /* 1 */
209  {
210 #if !defined(ASN_DISABLE_OER_SUPPORT)
211  0,
212 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
213 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
214  0,
215 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
216 #if !defined(ASN_DISABLE_JER_SUPPORT)
217  0,
218 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
220  },
222  6, /* Elements count */
223  &asn_SPC_cpm_ts_PathPointPredicted_specs_1 /* Additional specs */
224 };
225 
asn_DEF_cpm_ts_DeltaAltitude
asn_TYPE_descriptor_t asn_DEF_cpm_ts_DeltaAltitude
Definition: cpm_ts_DeltaAltitude.c:49
asn_OP_SEQUENCE
asn_TYPE_operation_t asn_OP_SEQUENCE
Definition: constr_SEQUENCE.c:9
cpm_ts_AltitudeConfidence_t
long cpm_ts_AltitudeConfidence_t
Definition: cpm_ts_AltitudeConfidence.h:42
ASN_TAG_CLASS_CONTEXT
@ ASN_TAG_CLASS_CONTEXT
Definition: ber_tlv_tag.h:15
cpm_ts_PathPointPredicted::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: cpm_ts_PathPointPredicted.h:43
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_DFL_6_set_15
static int asn_DFL_6_set_15(void **sptr)
Definition: cpm_ts_PathPointPredicted.c:42
asn_DEF_cpm_ts_PosConfidenceEllipse
asn_TYPE_descriptor_t asn_DEF_cpm_ts_PosConfidenceEllipse
Definition: cpm_ts_PosConfidenceEllipse.c:88
asn_MAP_cpm_ts_PathPointPredicted_oms_1
static const int asn_MAP_cpm_ts_PathPointPredicted_oms_1[]
Definition: cpm_ts_PathPointPredicted.c:178
asn_DEF_cpm_ts_PathPointPredicted
asn_TYPE_descriptor_t asn_DEF_cpm_ts_PathPointPredicted
Definition: cpm_ts_PathPointPredicted.c:199
CALLOC
#define CALLOC(nmemb, size)
Definition: asn_internal.h:37
asn_DEF_cpm_ts_DeltaTimeTenthOfSecond
asn_TYPE_descriptor_t asn_DEF_cpm_ts_DeltaTimeTenthOfSecond
Definition: cpm_ts_DeltaTimeTenthOfSecond.c:49
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
asn_DEF_cpm_ts_PathPointPredicted_tags_1
static const ber_tlv_tag_t asn_DEF_cpm_ts_PathPointPredicted_tags_1[]
Definition: cpm_ts_PathPointPredicted.c:179
asn_SPC_cpm_ts_PathPointPredicted_specs_1
asn_SEQUENCE_specifics_t asn_SPC_cpm_ts_PathPointPredicted_specs_1
Definition: cpm_ts_PathPointPredicted.c:190
asn_DFL_5_set_12800
static int asn_DFL_5_set_12800(void **sptr)
Definition: cpm_ts_PathPointPredicted.c:20
cpm_ts_PathPointPredicted.h
ATF_POINTER
@ ATF_POINTER
Definition: constr_TYPE.h:268
SEQUENCE_constraint
asn_constr_check_f SEQUENCE_constraint
Definition: constr_SEQUENCE.h:56
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
asn_DEF_cpm_ts_DeltaLongitude
asn_TYPE_descriptor_t asn_DEF_cpm_ts_DeltaLongitude
Definition: cpm_ts_DeltaLongitude.c:49
offsetof
#define offsetof(s, m)
Definition: asn_system.h:132
asn_MBR_cpm_ts_PathPointPredicted_1
asn_TYPE_member_t asn_MBR_cpm_ts_PathPointPredicted_1[]
Definition: cpm_ts_PathPointPredicted.c:54
asn_DFL_5_cmp_12800
static int asn_DFL_5_cmp_12800(const void *sptr)
Definition: cpm_ts_PathPointPredicted.c:10
cpm_ts_DeltaAltitude_t
long cpm_ts_DeltaAltitude_t
Definition: cpm_ts_DeltaAltitude.h:29
asn_MAP_cpm_ts_PathPointPredicted_tag2el_1
static const asn_TYPE_tag2member_t asn_MAP_cpm_ts_PathPointPredicted_tag2el_1[]
Definition: cpm_ts_PathPointPredicted.c:182
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_DEF_cpm_ts_DeltaLatitude
asn_TYPE_descriptor_t asn_DEF_cpm_ts_DeltaLatitude
Definition: cpm_ts_DeltaLatitude.c:49
asn_SEQUENCE_specifics_s
Definition: constr_SEQUENCE.h:14
cpm_ts_PathPointPredicted
Definition: cpm_ts_PathPointPredicted.h:30
asn_TYPE_member_s
Definition: constr_TYPE.h:272
asn_DFL_6_cmp_15
static int asn_DFL_6_cmp_15(const void *sptr)
Definition: cpm_ts_PathPointPredicted.c:32
asn_DEF_cpm_ts_AltitudeConfidence
asn_TYPE_descriptor_t asn_DEF_cpm_ts_AltitudeConfidence
Definition: cpm_ts_AltitudeConfidence.c:69


etsi_its_cpm_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:22:38