/* * Generated by asn1c * From ASN.1 module "IEEE1609dot2BaseTypes" * found in "IEEE1609dot2BaseTypes.asn" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R` */ #include "Duration.h" #if !defined(ASN_DISABLE_OER_SUPPORT) asn_oer_constraints_t asn_OER_type_Vanetza_Security_Duration_constr_1 CC_NOTUSED = { { 0, 0 }, -1}; #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) asn_per_constraints_t asn_PER_type_Vanetza_Security_Duration_constr_1 CC_NOTUSED = { { APC_CONSTRAINED, 3, 3, 0, 6 } /* (0..6) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ asn_TYPE_member_t asn_MBR_Vanetza_Security_Duration_1[] = { { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.microseconds), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "microseconds" }, { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.milliseconds), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "milliseconds" }, { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.seconds), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "seconds" }, { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.minutes), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "minutes" }, { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.hours), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "hours" }, { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.sixtyHours), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "sixtyHours" }, { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Duration, choice.years), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Vanetza_Security_Uint16, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "years" }, }; static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_Duration_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* microseconds */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* milliseconds */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seconds */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* minutes */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* hours */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* sixtyHours */ { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 } /* years */ }; asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_Duration_specs_1 = { sizeof(struct Vanetza_Security_Duration), offsetof(struct Vanetza_Security_Duration, _asn_ctx), offsetof(struct Vanetza_Security_Duration, present), sizeof(((struct Vanetza_Security_Duration *)0)->present), asn_MAP_Vanetza_Security_Duration_tag2el_1, 7, /* Count of tags in the map */ 0, 0, -1 /* Extensions start */ }; asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Duration = { "Duration", "Duration", &asn_OP_CHOICE, 0, /* No effective tags (pointer) */ 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ { #if !defined(ASN_DISABLE_OER_SUPPORT) &asn_OER_type_Vanetza_Security_Duration_constr_1, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_type_Vanetza_Security_Duration_constr_1, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_Vanetza_Security_Duration_1, 7, /* Elements count */ &asn_SPC_Vanetza_Security_Duration_specs_1 /* Additional specs */ };