ITS
VehicleLengthConfidenceIndication.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.27 (http://lionet.info/asn1c)
3  * From ASN.1 module "ITS-Container"
4  * found in "ITS-Container.asn"
5  */
6 
8 
9 int
11  asn_app_constraint_failed_f *ctfailcb, void *app_key) {
12  /* Replace with underlying type checker */
14  return td->check_constraints(td, sptr, ctfailcb, app_key);
15 }
16 
17 /*
18  * This type is implemented using NativeEnumerated,
19  * so here we adjust the DEF accordingly.
20  */
21 static void
32  if(!td->per_constraints)
36  /* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */
37 }
38 
39 void
41  void *struct_ptr, int contents_only) {
43  td->free_struct(td, struct_ptr, contents_only);
44 }
45 
46 int
48  int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
50  return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
51 }
52 
55  void **structure, const void *bufptr, size_t size, int tag_mode) {
57  return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
58 }
59 
62  void *structure, int tag_mode, ber_tlv_tag_t tag,
63  asn_app_consume_bytes_f *cb, void *app_key) {
65  return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
66 }
67 
70  void **structure, const char *opt_mname, const void *bufptr, size_t size) {
72  return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
73 }
74 
77  int ilevel, enum xer_encoder_flags_e flags,
78  asn_app_consume_bytes_f *cb, void *app_key) {
80  return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
81 }
82 
85  asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
87  return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
88 }
89 
92  asn_per_constraints_t *constraints,
93  void *structure, asn_per_outp_t *per_out) {
95  return td->uper_encoder(td, constraints, structure, per_out);
96 }
97 
98 static asn_per_constraints_t asn_PER_type_VehicleLengthConfidenceIndication_constr_1 GCC_NOTUSED = {
99  { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
100  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
101  0, 0 /* No PER value map */
102 };
104  { 0, 16, "noTrailerPresent" },
105  { 1, 29, "trailerPresentWithKnownLength" },
106  { 2, 31, "trailerPresentWithUnknownLength" },
107  { 3, 24, "trailerPresenceIsUnknown" },
108  { 4, 11, "unavailable" }
109 };
111  0, /* noTrailerPresent(0) */
112  3, /* trailerPresenceIsUnknown(3) */
113  1, /* trailerPresentWithKnownLength(1) */
114  2, /* trailerPresentWithUnknownLength(2) */
115  4 /* unavailable(4) */
116 };
118  asn_MAP_VehicleLengthConfidenceIndication_value2enum_1, /* "tag" => N; sorted by tag */
119  asn_MAP_VehicleLengthConfidenceIndication_enum2value_1, /* N => "tag"; sorted by N */
120  5, /* Number of elements in the maps */
121  0, /* Enumeration is not extensible */
122  1, /* Strict enumeration */
123  0, /* Native long size */
124  0
125 };
127  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
128 };
130  "VehicleLengthConfidenceIndication",
131  "VehicleLengthConfidenceIndication",
141  0, /* Use generic outmost tag fetcher */
148  &asn_PER_type_VehicleLengthConfidenceIndication_constr_1,
149  0, 0, /* Defined elsewhere */
151 };
152 
static asn_INTEGER_specifics_t asn_SPC_VehicleLengthConfidenceIndication_specs_1
asn_TYPE_descriptor_t asn_DEF_VehicleLengthConfidenceIndication
asn_enc_rval_t VehicleLengthConfidenceIndication_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key)
int VehicleLengthConfidenceIndication_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key)
static unsigned int asn_MAP_VehicleLengthConfidenceIndication_enum2value_1[]
static void VehicleLengthConfidenceIndication_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td)
int VehicleLengthConfidenceIndication_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key)
static ber_tlv_tag_t asn_DEF_VehicleLengthConfidenceIndication_tags_1[]
xer_encoder_flags_e
Definition: xer_encoder.h:17
asn_struct_free_f * free_struct
Definition: constr_TYPE.h:93
asn_constr_check_f * check_constraints
Definition: constr_TYPE.h:95
asn_dec_rval_t VehicleLengthConfidenceIndication_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size)
asn_struct_print_f * print_struct
Definition: constr_TYPE.h:94
struct asn_TYPE_member_s * elements
Definition: constr_TYPE.h:121
asn_enc_rval_t VehicleLengthConfidenceIndication_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key)
int() asn_app_consume_bytes_f(const void *buffer, size_t size, void *application_specific_key)
xer_type_decoder_f * xer_decoder
Definition: constr_TYPE.h:98
asn_TYPE_descriptor_t asn_DEF_NativeEnumerated
der_type_encoder_f * der_encoder
Definition: constr_TYPE.h:97
void() asn_app_constraint_failed_f(void *application_specific_key, struct asn_TYPE_descriptor_s *type_descriptor_which_failed, const void *structure_which_failed_ptr, const char *error_message_format,...) GCC_PRINTFLIKE(4
per_type_encoder_f * uper_encoder
Definition: constr_TYPE.h:101
per_type_decoder_f * uper_decoder
Definition: constr_TYPE.h:100
static asn_INTEGER_enum_map_t asn_MAP_VehicleLengthConfidenceIndication_value2enum_1[]
static asn_per_constraints_t asn_PER_type_VehicleLengthConfidenceIndication_constr_1 GCC_NOTUSED
asn_per_constraints_t * per_constraints
Definition: constr_TYPE.h:116
ber_type_decoder_f * ber_decoder
Definition: constr_TYPE.h:96
asn_dec_rval_t VehicleLengthConfidenceIndication_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode)
asn_enc_rval_t VehicleLengthConfidenceIndication_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out)
asn_dec_rval_t VehicleLengthConfidenceIndication_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data)
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
xer_type_encoder_f * xer_encoder
Definition: constr_TYPE.h:99
void VehicleLengthConfidenceIndication_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only)