Skip to content

Commit

Permalink
modified: src/tmx/Asn_J2735/src/r2020/RegionalExtension.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed Oct 26, 2023
1 parent bb0f166 commit 31dac54
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/tmx/Asn_J2735/src/r2020/RegionalExtension.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

#include "RegionalExtension.h"

static const long asn_VAL_10_DSRC_addGrpCarma = 128;
static const asn_ioc_cell_t asn_IOS_Reg_BasicSafetyMessage_1_rows[] = {
{ "&id", aioc__value, &asn_DEF_RegionId, &asn_VAL_10_DSRC_addGrpCarma },
{ "&Type", aioc__type, &asn_DEF_BasicSafetyMessage_addGrpCarma }
};
static const asn_ioc_set_t asn_IOS_Reg_BasicSafetyMessage_1[] = {
{ 1, 2, asn_IOS_Reg_BasicSafetyMessage_1_rows }
};
static const long asn_VAL_3_addGrpB = 2;
static const asn_ioc_cell_t asn_IOS_Reg_LaneDataAttribute_1_rows[] = {
{ "&id", aioc__value, &asn_DEF_RegionId, &asn_VAL_3_addGrpB },
Expand Down Expand Up @@ -275,6 +283,33 @@ memb_regionId_constraint_13(const asn_TYPE_descriptor_t *td, const void *sptr,
}
}

static asn_type_selector_result_t
select_Reg_BasicSafetyMessage_regExtValue_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
asn_type_selector_result_t result = {0, 0};
const asn_ioc_set_t *itable = asn_IOS_Reg_BasicSafetyMessage_1;
size_t constraining_column = 0; /* &id */
size_t for_column = 1; /* &Type */
size_t row, presence_index = 0;
const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct Reg_BasicSafetyMessage, regionId));

for(row=0; row < itable->rows_count; row++) {
const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];

if(type_cell->cell_kind == aioc__undefined)
continue;

presence_index++;
if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
result.type_descriptor = type_cell->type_descriptor;
result.presence_index = presence_index;
break;
}
}

return result;
}

static asn_type_selector_result_t
select_Reg_LaneDataAttribute_regExtValue_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
asn_type_selector_result_t result = {0, 0};
Expand Down Expand Up @@ -2998,6 +3033,28 @@ static asn_per_constraints_t asn_PER_memb_regExtValue_constr_3 CC_NOTUSED = {
0, 0 /* No PER value map */
};
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
static asn_TYPE_member_t asn_MBR_regExtValue_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Reg_BasicSafetyMessage__regExtValue, choice.BasicSafetyMessage_addGrpCarma),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
0,
&asn_DEF_BasicSafetyMessage_addGrpCarma,
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) */
0
},
0, 0, /* No default value */
"BasicSafetyMessage-addGrpCarma"
},
};
static const asn_TYPE_tag2member_t asn_MAP_regExtValue_tag2el_3[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* BasicSafetyMessage-addGrpCarma */
};
#if !defined(ASN_DISABLE_OER_SUPPORT)
static asn_oer_constraints_t asn_OER_memb_regionId_constr_5 CC_NOTUSED = {
{ 1, 1 } /* (0..255) */,
Expand Down

0 comments on commit 31dac54

Please sign in to comment.