text: /*
   * Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
   * From ASN.1 module "DSRC"
   * 	found in "../downloads/DSRC_R36_Source.ASN"
   * 	`asn1c -fcompound-names`
   */
  
  #include <asn_internal.h>
  
  #include "VehicleStatusDeviceTypeTag.h"
  
  int
  VehicleStatusDeviceTypeTag_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
  			asn_app_constraint_failed_f *ctfailcb, void *app_key) {
  	/* Replace with underlying type checker */
  	td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
  	return td->check_constraints(td, sptr, ctfailcb, app_key);
  }
  
  /*
   * This type is implemented using ENUMERATED,
   * so here we adjust the DEF accordingly.
   */
  static void
  VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
  	td->free_struct    = asn_DEF_ENUMERATED.free_struct;
  	td->print_struct   = asn_DEF_ENUMERATED.print_struct;
  	td->ber_decoder    = asn_DEF_ENUMERATED.ber_decoder;
  	td->der_encoder    = asn_DEF_ENUMERATED.der_encoder;
  	td->xer_decoder    = asn_DEF_ENUMERATED.xer_decoder;
  	td->xer_encoder    = asn_DEF_ENUMERATED.xer_encoder;
  	td->uper_decoder   = asn_DEF_ENUMERATED.uper_decoder;
  	td->uper_encoder   = asn_DEF_ENUMERATED.uper_encoder;
  	if(!td->per_constraints)
  		td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
  	td->elements       = asn_DEF_ENUMERATED.elements;
  	td->elements_count = asn_DEF_ENUMERATED.elements_count;
       /* td->specifics      = asn_DEF_ENUMERATED.specifics;	// Defined explicitly */
  }
  
  void
  VehicleStatusDeviceTypeTag_free(asn_TYPE_descriptor_t *td,
  		void *struct_ptr, int contents_only) {
  	VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(td);
  	td->free_struct(td, struct_ptr, contents_only);
  }
  
  int
  VehicleStatusDeviceTypeTag_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
  		int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
  	VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(td);
  	return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
  }
  
  asn_dec_rval_t
  VehicleStatusDeviceTypeTag_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) {
  	VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(td);
  	return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
  }
  
  asn_enc_rval_t
  VehicleStatusDeviceTypeTag_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) {
  	VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(td);
  	return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
  }
  
  asn_dec_rval_t
  VehicleStatusDeviceTypeTag_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) {
  	VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(td);
  	return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
  }
  
  asn_enc_rval_t
  VehicleStatusDeviceTypeTag_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) {
  	VehicleStatusDeviceTypeTag_1_inherit_TYPE_descriptor(td);
  	return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
  }
  
  static asn_INTEGER_enum_map_t asn_MAP_VehicleStatusDeviceTypeTag_value2enum_1[] = {
  	{ 0,	7,	"unknown" },
  	{ 1,	6,	"lights" },
  	{ 2,	6,	"wipers" },
  	{ 3,	6,	"brakes" },
  	{ 4,	4,	"stab" },
  	{ 5,	4,	"trac" },
  	{ 6,	3,	"abs" },
  	{ 7,	4,	"sunS" },
  	{ 8,	5,	"rainS" },
  	{ 9,	7,	"airTemp" },
  	{ 10,	8,	"steering" },
  	{ 11,	14,	"vertAccelThres" },
  	{ 12,	9,	"vertAccel" },
  	{ 13,	12,	"hozAccelLong" },
  	{ 14,	11,	"hozAccelLat" },
  	{ 15,	11,	"hozAccelCon" },
  	{ 16,	9,	"accel4way" },
  	{ 17,	13,	"confidenceSet" },
  	{ 18,	6,	"obDist" },
  	{ 19,	8,	"obDirect" },
  	{ 20,	3,	"yaw" },
  	{ 21,	10,	"yawRateCon" },
  	{ 22,	8,	"dateTime" },
  	{ 23,	7,	"fullPos" },
  	{ 24,	10,	"position2D" },
  	{ 25,	10,	"position3D" },
  	{ 26,	7,	"vehicle" },
  	{ 27,	10,	"speedHeadC" },
  	{ 28,	6,	"speedC" }
  	/* This list is extensible */
  };
  static unsigned int asn_MAP_VehicleStatusDeviceTypeTag_enum2value_1[] = {
  	6,	/* abs(6) */
  	16,	/* accel4way(16) */
  	9,	/* airTemp(9) */
  	3,	/* brakes(3) */
  	17,	/* confidenceSet(17) */
  	22,	/* dateTime(22) */
  	23,	/* fullPos(23) */
  	15,	/* hozAccelCon(15) */
  	14,	/* hozAccelLat(14) */
  	13,	/* hozAccelLong(13) */
  	1,	/* lights(1) */
  	19,	/* obDirect(19) */
  	18,	/* obDist(18) */
  	24,	/* position2D(24) */
  	25,	/* position3D(25) */
  	8,	/* rainS(8) */
  	28,	/* speedC(28) */
  	27,	/* speedHeadC(27) */
  	4,	/* stab(4) */
  	10,	/* steering(10) */
  	7,	/* sunS(7) */
  	5,	/* trac(5) */
  	0,	/* unknown(0) */
  	26,	/* vehicle(26) */
  	12,	/* vertAccel(12) */
  	11,	/* vertAccelThres(11) */
  	2,	/* wipers(2) */
  	20,	/* yaw(20) */
  	21	/* yawRateCon(21) */
  	/* This list is extensible */
  };
  static asn_INTEGER_specifics_t asn_SPC_VehicleStatusDeviceTypeTag_specs_1 = {
  	asn_MAP_VehicleStatusDeviceTypeTag_value2enum_1,	/* "tag" => N; sorted by tag */
  	asn_MAP_VehicleStatusDeviceTypeTag_enum2value_1,	/* N => "tag"; sorted by N */
  	29,	/* Number of elements in the maps */
  	30,	/* Extensions before this member */
  	1	/* Strict enumeration */
  };
  static ber_tlv_tag_t asn_DEF_VehicleStatusDeviceTypeTag_tags_1[] = {
  	(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
  };
  asn_TYPE_descriptor_t asn_DEF_VehicleStatusDeviceTypeTag = {
  	"VehicleStatusDeviceTypeTag",
  	"VehicleStatusDeviceTypeTag",
  	VehicleStatusDeviceTypeTag_free,
  	VehicleStatusDeviceTypeTag_print,
  	VehicleStatusDeviceTypeTag_constraint,
  	VehicleStatusDeviceTypeTag_decode_ber,
  	VehicleStatusDeviceTypeTag_encode_der,
  	VehicleStatusDeviceTypeTag_decode_xer,
  	VehicleStatusDeviceTypeTag_encode_xer,
  	0, 0,	/* No PER support, use "-gen-PER" to enable */
  	0,	/* Use generic outmost tag fetcher */
  	asn_DEF_VehicleStatusDeviceTypeTag_tags_1,
  	sizeof(asn_DEF_VehicleStatusDeviceTypeTag_tags_1)
  		/sizeof(asn_DEF_VehicleStatusDeviceTypeTag_tags_1[0]), /* 1 */
  	asn_DEF_VehicleStatusDeviceTypeTag_tags_1,	/* Same as above */
  	sizeof(asn_DEF_VehicleStatusDeviceTypeTag_tags_1)
  		/sizeof(asn_DEF_VehicleStatusDeviceTypeTag_tags_1[0]), /* 1 */
  	0,	/* No PER visible constraints */
  	0, 0,	/* Defined elsewhere */
  	&asn_SPC_VehicleStatusDeviceTypeTag_specs_1	/* Additional specs */
  };
  
  