cam_ts_LanePositionWithLateralDetails.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 
9 
10 static int asn_DFL_3_cmp_0(const void *sptr) {
11  const cam_ts_LaneType_t *st = sptr;
12 
13  if(!st) {
14  return -1; /* No value is not a default value */
15  }
16 
17  /* Test default value 0 */
18  return (*st != 0);
19 }
20 static int asn_DFL_3_set_0(void **sptr) {
21  cam_ts_LaneType_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 0 */
29  *st = 0;
30  return 0;
31 }
32 static int asn_DFL_4_cmp_0(const void *sptr) {
33  const cam_ts_Direction_t *st = sptr;
34 
35  if(!st) {
36  return -1; /* No value is not a default value */
37  }
38 
39  /* Test default value 0 */
40  return (*st != 0);
41 }
42 static int asn_DFL_4_set_0(void **sptr) {
43  cam_ts_Direction_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 0 */
51  *st = 0;
52  return 0;
53 }
55  { ATF_NOFLAGS, 0, offsetof(struct cam_ts_LanePositionWithLateralDetails, transversalPosition),
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  "transversalPosition"
74  },
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  &asn_DFL_3_cmp_0, /* Compare DEFAULT 0 */
93  &asn_DFL_3_set_0, /* Set DEFAULT 0 */
94  "laneType"
95  },
97  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
98  -1, /* IMPLICIT tag at current level */
100  0,
101  {
102 #if !defined(ASN_DISABLE_OER_SUPPORT)
103  0,
104 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
105 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
106  0,
107 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
108 #if !defined(ASN_DISABLE_JER_SUPPORT)
109  0,
110 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
111  0
112  },
113  &asn_DFL_4_cmp_0, /* Compare DEFAULT 0 */
114  &asn_DFL_4_set_0, /* Set DEFAULT 0 */
115  "direction"
116  },
117  { ATF_NOFLAGS, 0, offsetof(struct cam_ts_LanePositionWithLateralDetails, distanceToLeftBorder),
118  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
119  -1, /* IMPLICIT tag at current level */
121  0,
122  {
123 #if !defined(ASN_DISABLE_OER_SUPPORT)
124  0,
125 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
126 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
127  0,
128 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
129 #if !defined(ASN_DISABLE_JER_SUPPORT)
130  0,
131 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
132  0
133  },
134  0, 0, /* No default value */
135  "distanceToLeftBorder"
136  },
137  { ATF_NOFLAGS, 0, offsetof(struct cam_ts_LanePositionWithLateralDetails, distanceToRightBorder),
138  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
139  -1, /* IMPLICIT tag at current level */
141  0,
142  {
143 #if !defined(ASN_DISABLE_OER_SUPPORT)
144  0,
145 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
146 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
147  0,
148 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
149 #if !defined(ASN_DISABLE_JER_SUPPORT)
150  0,
151 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
152  0
153  },
154  0, 0, /* No default value */
155  "distanceToRightBorder"
156  },
157 };
160  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
161 };
163  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transversalPosition */
164  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* laneType */
165  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* direction */
166  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* distanceToLeftBorder */
167  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* distanceToRightBorder */
168 };
173  5, /* Count of tags in the map */
175  2, 0, /* Root/Additions */
176  5, /* First extension addition */
177 };
179  "LanePositionWithLateralDetails",
180  "LanePositionWithLateralDetails",
188  {
189 #if !defined(ASN_DISABLE_OER_SUPPORT)
190  0,
191 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
192 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
193  0,
194 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
195 #if !defined(ASN_DISABLE_JER_SUPPORT)
196  0,
197 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
199  },
201  5, /* Elements count */
203 };
204 
asn_OP_SEQUENCE
asn_TYPE_operation_t asn_OP_SEQUENCE
Definition: constr_SEQUENCE.c:9
ASN_TAG_CLASS_CONTEXT
@ ASN_TAG_CLASS_CONTEXT
Definition: ber_tlv_tag.h:15
ber_tlv_tag_t
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_MBR_cam_ts_LanePositionWithLateralDetails_1
asn_TYPE_member_t asn_MBR_cam_ts_LanePositionWithLateralDetails_1[]
Definition: cam_ts_LanePositionWithLateralDetails.c:54
ASN_TAG_CLASS_UNIVERSAL
@ ASN_TAG_CLASS_UNIVERSAL
Definition: ber_tlv_tag.h:13
asn_DFL_3_set_0
static int asn_DFL_3_set_0(void **sptr)
Definition: cam_ts_LanePositionWithLateralDetails.c:20
CALLOC
#define CALLOC(nmemb, size)
Definition: asn_internal.h:37
asn_DFL_4_cmp_0
static int asn_DFL_4_cmp_0(const void *sptr)
Definition: cam_ts_LanePositionWithLateralDetails.c:32
cam_ts_LaneType_t
long cam_ts_LaneType_t
Definition: cam_ts_LaneType.h:49
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
asn_MAP_cam_ts_LanePositionWithLateralDetails_oms_1
static const int asn_MAP_cam_ts_LanePositionWithLateralDetails_oms_1[]
Definition: cam_ts_LanePositionWithLateralDetails.c:158
asn_DEF_cam_ts_LanePositionWithLateralDetails
asn_TYPE_descriptor_t asn_DEF_cam_ts_LanePositionWithLateralDetails
Definition: cam_ts_LanePositionWithLateralDetails.c:178
SEQUENCE_constraint
asn_constr_check_f SEQUENCE_constraint
Definition: constr_SEQUENCE.h:56
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
offsetof
#define offsetof(s, m)
Definition: asn_system.h:132
asn_DFL_3_cmp_0
static int asn_DFL_3_cmp_0(const void *sptr)
Definition: cam_ts_LanePositionWithLateralDetails.c:10
asn_DEF_cam_ts_Direction
asn_TYPE_descriptor_t asn_DEF_cam_ts_Direction
Definition: cam_ts_Direction.c:49
asn_MAP_cam_ts_LanePositionWithLateralDetails_tag2el_1
static const asn_TYPE_tag2member_t asn_MAP_cam_ts_LanePositionWithLateralDetails_tag2el_1[]
Definition: cam_ts_LanePositionWithLateralDetails.c:162
asn_DEF_cam_ts_StandardLength9b
asn_TYPE_descriptor_t asn_DEF_cam_ts_StandardLength9b
Definition: cam_ts_StandardLength9b.c:49
asn_DFL_4_set_0
static int asn_DFL_4_set_0(void **sptr)
Definition: cam_ts_LanePositionWithLateralDetails.c:42
cam_ts_Direction_t
long cam_ts_Direction_t
Definition: cam_ts_Direction.h:30
asn_DEF_cam_ts_LanePositionWithLateralDetails_tags_1
static const ber_tlv_tag_t asn_DEF_cam_ts_LanePositionWithLateralDetails_tags_1[]
Definition: cam_ts_LanePositionWithLateralDetails.c:159
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_SEQUENCE_specifics_s
Definition: constr_SEQUENCE.h:14
asn_DEF_cam_ts_LaneType
asn_TYPE_descriptor_t asn_DEF_cam_ts_LaneType
Definition: cam_ts_LaneType.c:49
cam_ts_LanePositionWithLateralDetails.h
cam_ts_LanePositionWithLateralDetails
Definition: cam_ts_LanePositionWithLateralDetails.h:26
asn_TYPE_member_s
Definition: constr_TYPE.h:272
asn_SPC_cam_ts_LanePositionWithLateralDetails_specs_1
asn_SEQUENCE_specifics_t asn_SPC_cam_ts_LanePositionWithLateralDetails_specs_1
Definition: cam_ts_LanePositionWithLateralDetails.c:169
asn_DEF_cam_ts_LanePosition
asn_TYPE_descriptor_t asn_DEF_cam_ts_LanePosition
Definition: cam_ts_LanePosition.c:49
cam_ts_LanePositionWithLateralDetails::_asn_ctx
asn_struct_ctx_t _asn_ctx
Definition: cam_ts_LanePositionWithLateralDetails.h:38


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