Files
Ashin Walpola d107534eb2 Keep vanetza-idf in obu-firmware, so a plain clone builds the firmware
obu-firmware builds against the vanetza-idf C-ITS library, which until now
came from the colleague's microbu-esp32c5 tree beside the repository and was
not tracked here, so a clone of this repository could not build the firmware
it ships. The library alone is now part of obu-firmware, as
obu-firmware/external/vanetza-idf: their external/vanetza-idf at commit
cf4b99f, unchanged (9775 files; see its PROVENANCE.md). CMake takes it from
there by default; -DVANETZA_IDF_DIR still points the build elsewhere.

The rest of the colleague's tree (their own VAM firmware, PKI tooling,
station-link Python tools, the V2X2MAP bridge) stays out of this repository
and gitignored; nothing is pushed to their repository. NOTES.md, docs/06,
TODO.md and the pcap verifier's usage line point at the new location.
2026-09-24 10:56:05 +02:00

368 lines
13 KiB
C

/*
* Generated by asn1c
* From ASN.1 module "DENM-PDU-Description"
* found in "TS103831v231-DENM.asn"
* `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_ITS2_ -R`
*/
#include "SituationContainer.h"
#if !defined(ASN_DISABLE_OER_SUPPORT)
asn_oer_constraints_t asn_OER_type_Vanetza_ITS2_SituationContainer_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_ITS2_SituationContainer_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ 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_Vanetza_ITS2_ext1_7[] = {
{ ATF_POINTER, 2, offsetof(struct Vanetza_ITS2_SituationContainer__ext1, linkedDenms),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_ActionIdList,
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 */
"linkedDenms"
},
{ ATF_POINTER, 1, offsetof(struct Vanetza_ITS2_SituationContainer__ext1, eventEnd),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_Position1d,
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 */
"eventEnd"
},
};
static const int asn_MAP_Vanetza_ITS2_ext1_oms_7[] = { 0, 1 };
static const ber_tlv_tag_t asn_DEF_Vanetza_ITS2_ext1_tags_7[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_Vanetza_ITS2_ext1_tag2el_7[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* linkedDenms */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* eventEnd */
};
static asn_SEQUENCE_specifics_t asn_SPC_Vanetza_ITS2_ext1_specs_7 = {
sizeof(struct Vanetza_ITS2_SituationContainer__ext1),
offsetof(struct Vanetza_ITS2_SituationContainer__ext1, _asn_ctx),
asn_MAP_Vanetza_ITS2_ext1_tag2el_7,
2, /* Count of tags in the map */
asn_MAP_Vanetza_ITS2_ext1_oms_7, /* Optional members */
2, 0, /* Root/Additions */
-1, /* First extension addition */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Vanetza_ITS2_ext1_7 = {
"ext1",
"ext1",
&asn_OP_SEQUENCE,
asn_DEF_Vanetza_ITS2_ext1_tags_7,
sizeof(asn_DEF_Vanetza_ITS2_ext1_tags_7)
/sizeof(asn_DEF_Vanetza_ITS2_ext1_tags_7[0]) - 1, /* 1 */
asn_DEF_Vanetza_ITS2_ext1_tags_7, /* Same as above */
sizeof(asn_DEF_Vanetza_ITS2_ext1_tags_7)
/sizeof(asn_DEF_Vanetza_ITS2_ext1_tags_7[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_Vanetza_ITS2_ext1_7,
2, /* Elements count */
&asn_SPC_Vanetza_ITS2_ext1_specs_7 /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Vanetza_ITS2_ext2_10[] = {
{ ATF_POINTER, 2, offsetof(struct Vanetza_ITS2_SituationContainer__ext2, eventEndFactor),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_MultiplicativeFactor,
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 */
"eventEndFactor"
},
{ ATF_POINTER, 1, offsetof(struct Vanetza_ITS2_SituationContainer__ext2, perceivedEvent),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_PerceivedEvent,
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 */
"perceivedEvent"
},
};
static const int asn_MAP_Vanetza_ITS2_ext2_oms_10[] = { 0, 1 };
static const ber_tlv_tag_t asn_DEF_Vanetza_ITS2_ext2_tags_10[] = {
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_Vanetza_ITS2_ext2_tag2el_10[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* eventEndFactor */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* perceivedEvent */
};
static asn_SEQUENCE_specifics_t asn_SPC_Vanetza_ITS2_ext2_specs_10 = {
sizeof(struct Vanetza_ITS2_SituationContainer__ext2),
offsetof(struct Vanetza_ITS2_SituationContainer__ext2, _asn_ctx),
asn_MAP_Vanetza_ITS2_ext2_tag2el_10,
2, /* Count of tags in the map */
asn_MAP_Vanetza_ITS2_ext2_oms_10, /* Optional members */
2, 0, /* Root/Additions */
-1, /* First extension addition */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Vanetza_ITS2_ext2_10 = {
"ext2",
"ext2",
&asn_OP_SEQUENCE,
asn_DEF_Vanetza_ITS2_ext2_tags_10,
sizeof(asn_DEF_Vanetza_ITS2_ext2_tags_10)
/sizeof(asn_DEF_Vanetza_ITS2_ext2_tags_10[0]) - 1, /* 1 */
asn_DEF_Vanetza_ITS2_ext2_tags_10, /* Same as above */
sizeof(asn_DEF_Vanetza_ITS2_ext2_tags_10)
/sizeof(asn_DEF_Vanetza_ITS2_ext2_tags_10[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_Vanetza_ITS2_ext2_10,
2, /* Elements count */
&asn_SPC_Vanetza_ITS2_ext2_specs_10 /* Additional specs */
};
asn_TYPE_member_t asn_MBR_Vanetza_ITS2_SituationContainer_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Vanetza_ITS2_SituationContainer, informationQuality),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_InformationQuality,
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 */
"informationQuality"
},
{ ATF_NOFLAGS, 0, offsetof(struct Vanetza_ITS2_SituationContainer, eventType),
(ASN_TAG_CLASS_CONTEXT | (1 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_CauseCodeV2,
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 */
"eventType"
},
{ ATF_POINTER, 4, offsetof(struct Vanetza_ITS2_SituationContainer, linkedCause),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_CauseCodeV2,
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 */
"linkedCause"
},
{ ATF_POINTER, 3, offsetof(struct Vanetza_ITS2_SituationContainer, eventZone),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
-1, /* IMPLICIT tag at current level */
&asn_DEF_Vanetza_ITS2_EventZone,
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 */
"eventZone"
},
{ ATF_POINTER, 2, offsetof(struct Vanetza_ITS2_SituationContainer, ext1),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
0,
&asn_DEF_Vanetza_ITS2_ext1_7,
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"
},
{ ATF_POINTER, 1, offsetof(struct Vanetza_ITS2_SituationContainer, ext2),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
0,
&asn_DEF_Vanetza_ITS2_ext2_10,
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 */
"ext2"
},
};
static const int asn_MAP_Vanetza_ITS2_SituationContainer_oms_1[] = { 2, 3, 4, 5 };
static const ber_tlv_tag_t asn_DEF_Vanetza_ITS2_SituationContainer_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_Vanetza_ITS2_SituationContainer_tag2el_1[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* informationQuality */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* eventType */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* linkedCause */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* eventZone */
{ (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* ext1 */
{ (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* ext2 */
};
asn_SEQUENCE_specifics_t asn_SPC_Vanetza_ITS2_SituationContainer_specs_1 = {
sizeof(struct Vanetza_ITS2_SituationContainer),
offsetof(struct Vanetza_ITS2_SituationContainer, _asn_ctx),
asn_MAP_Vanetza_ITS2_SituationContainer_tag2el_1,
6, /* Count of tags in the map */
asn_MAP_Vanetza_ITS2_SituationContainer_oms_1, /* Optional members */
2, 2, /* Root/Additions */
4, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_Vanetza_ITS2_SituationContainer = {
"SituationContainer",
"SituationContainer",
&asn_OP_SEQUENCE,
asn_DEF_Vanetza_ITS2_SituationContainer_tags_1,
sizeof(asn_DEF_Vanetza_ITS2_SituationContainer_tags_1)
/sizeof(asn_DEF_Vanetza_ITS2_SituationContainer_tags_1[0]), /* 1 */
asn_DEF_Vanetza_ITS2_SituationContainer_tags_1, /* Same as above */
sizeof(asn_DEF_Vanetza_ITS2_SituationContainer_tags_1)
/sizeof(asn_DEF_Vanetza_ITS2_SituationContainer_tags_1[0]), /* 1 */
{
#if !defined(ASN_DISABLE_OER_SUPPORT)
&asn_OER_type_Vanetza_ITS2_SituationContainer_constr_1,
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
&asn_PER_type_Vanetza_ITS2_SituationContainer_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) */
SEQUENCE_constraint
},
asn_MBR_Vanetza_ITS2_SituationContainer_1,
6, /* Elements count */
&asn_SPC_Vanetza_ITS2_SituationContainer_specs_1 /* Additional specs */
};