/* * Generated by asn1c * From ASN.1 module "IVI" * found in "ISO19321.asn" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` */ #include "TcPart.h" static int memb_minimumAwarenessTime_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 0L && value <= 255L)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_layoutId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 1L && value <= 4L)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_preStoredlayoutId_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value >= 1L && value <= 64L)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_memb_minimumAwarenessTime_constr_6 CC_NOTUSED = { { 1, 1 } /* (0..255) */, -1}; #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_minimumAwarenessTime_constr_6 CC_NOTUSED = { { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_memb_layoutId_constr_8 CC_NOTUSED = { { 0, 0 }, -1}; #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_layoutId_constr_8 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 1, 4 } /* (1..4,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_OER_SUPPORT) static asn_oer_constraints_t asn_OER_memb_preStoredlayoutId_constr_9 CC_NOTUSED = { { 0, 0 }, -1}; #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) static asn_per_constraints_t asn_PER_memb_preStoredlayoutId_constr_9 CC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 6, 6, 1, 64 } /* (1..64,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ static asn_TYPE_member_t asn_MBR_ext1_13[] = { { ATF_NOFLAGS, 0, offsetof(struct TcPart__ext1, iviType), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_IviType, 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 */ "iviType" }, { ATF_POINTER, 2, offsetof(struct TcPart__ext1, laneStatus), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_LaneStatus, 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 */ "laneStatus" }, { ATF_POINTER, 1, offsetof(struct TcPart__ext1, vehicleCharacteristics), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_VehicleCharacteristicsList, 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 */ "vehicleCharacteristics" }, }; static const int asn_MAP_ext1_oms_13[] = { 1, 2 }; static const ber_tlv_tag_t asn_DEF_ext1_tags_13[] = { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_ext1_tag2el_13[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iviType */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* laneStatus */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* vehicleCharacteristics */ }; static asn_SEQUENCE_specifics_t asn_SPC_ext1_specs_13 = { sizeof(struct TcPart__ext1), offsetof(struct TcPart__ext1, _asn_ctx), asn_MAP_ext1_tag2el_13, 3, /* Count of tags in the map */ asn_MAP_ext1_oms_13, /* Optional members */ 2, 0, /* Root/Additions */ -1, /* First extension addition */ }; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_ext1_13 = { "ext1", "ext1", &asn_OP_SEQUENCE, asn_DEF_ext1_tags_13, sizeof(asn_DEF_ext1_tags_13) /sizeof(asn_DEF_ext1_tags_13[0]) - 1, /* 1 */ asn_DEF_ext1_tags_13, /* Same as above */ sizeof(asn_DEF_ext1_tags_13) /sizeof(asn_DEF_ext1_tags_13[0]), /* 2 */ { #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) */ SEQUENCE_constraint }, asn_MBR_ext1_13, 3, /* Elements count */ &asn_SPC_ext1_specs_13 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_TcPart_1[] = { { ATF_POINTER, 1, offsetof(struct TcPart, detectionZoneIds), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ZoneIds, 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 */ "detectionZoneIds" }, { ATF_NOFLAGS, 0, offsetof(struct TcPart, relevanceZoneIds), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ZoneIds, 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 */ "relevanceZoneIds" }, { ATF_POINTER, 7, offsetof(struct TcPart, direction), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_Direction, 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 */ "direction" }, { ATF_POINTER, 6, offsetof(struct TcPart, driverAwarenessZoneIds), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_ZoneIds, 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 */ "driverAwarenessZoneIds" }, { ATF_POINTER, 5, offsetof(struct TcPart, minimumAwarenessTime), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) &asn_OER_memb_minimumAwarenessTime_constr_6, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_minimumAwarenessTime_constr_6, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_minimumAwarenessTime_constraint_1 }, 0, 0, /* No default value */ "minimumAwarenessTime" }, { ATF_POINTER, 4, offsetof(struct TcPart, applicableLanes), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_LanePositions, 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 */ "applicableLanes" }, { ATF_POINTER, 3, offsetof(struct TcPart, layoutId), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) &asn_OER_memb_layoutId_constr_8, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_layoutId_constr_8, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_layoutId_constraint_1 }, 0, 0, /* No default value */ "layoutId" }, { ATF_POINTER, 2, offsetof(struct TcPart, preStoredlayoutId), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) &asn_OER_memb_preStoredlayoutId_constr_9, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) &asn_PER_memb_preStoredlayoutId_constr_9, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_preStoredlayoutId_constraint_1 }, 0, 0, /* No default value */ "preStoredlayoutId" }, { ATF_POINTER, 1, offsetof(struct TcPart, text), (ASN_TAG_CLASS_CONTEXT | (8 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_TextLines, 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 */ "text" }, { ATF_NOFLAGS, 0, offsetof(struct TcPart, data), (ASN_TAG_CLASS_CONTEXT | (9 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 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 */ "data" }, { ATF_POINTER, 1, offsetof(struct TcPart, ext1), (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 0, &asn_DEF_ext1_13, 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 */ "ext1" }, }; static const int asn_MAP_TcPart_oms_1[] = { 0, 2, 3, 4, 5, 6, 7, 8, 10 }; static const ber_tlv_tag_t asn_DEF_TcPart_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_TcPart_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* detectionZoneIds */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* relevanceZoneIds */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* direction */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* driverAwarenessZoneIds */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* minimumAwarenessTime */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* applicableLanes */ { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* layoutId */ { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* preStoredlayoutId */ { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* text */ { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* data */ { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 } /* ext1 */ }; asn_SEQUENCE_specifics_t asn_SPC_TcPart_specs_1 = { sizeof(struct TcPart), offsetof(struct TcPart, _asn_ctx), asn_MAP_TcPart_tag2el_1, 11, /* Count of tags in the map */ asn_MAP_TcPart_oms_1, /* Optional members */ 8, 1, /* Root/Additions */ 10, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_TcPart = { "TcPart", "TcPart", &asn_OP_SEQUENCE, asn_DEF_TcPart_tags_1, sizeof(asn_DEF_TcPart_tags_1) /sizeof(asn_DEF_TcPart_tags_1[0]), /* 1 */ asn_DEF_TcPart_tags_1, /* Same as above */ sizeof(asn_DEF_TcPart_tags_1) /sizeof(asn_DEF_TcPart_tags_1[0]), /* 1 */ { #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) */ SEQUENCE_constraint }, asn_MBR_TcPart_1, 11, /* Elements count */ &asn_SPC_TcPart_specs_1 /* Additional specs */ };