diff --git a/src/tmx/Asn_J2735/include/asn_j2735_r2020/DSRC_DayOfWeek.h b/src/tmx/Asn_J2735/include/asn_j2735_r2020/DSRC_DayOfWeek.h new file mode 100644 index 000000000..d826b978d --- /dev/null +++ b/src/tmx/Asn_J2735/include/asn_j2735_r2020/DSRC_DayOfWeek.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DSRC" + * found in "J2735_201603_ASN_CC.asn" + * `asn1c -gen-PER -fcompound-names -fincludes-quoted -fskeletons-copy` + */ + +#ifndef _DSRC_DayOfWeek_H_ +#define _DSRC_DayOfWeek_H_ + + +#include "asn_application.h" + +/* Including external dependencies */ +#include "BIT_STRING.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum DSRC_DayOfWeek { + DSRC_DayOfWeek_sun = 6, + DSRC_DayOfWeek_mon = 5, + DSRC_DayOfWeek_tue = 4, + DSRC_DayOfWeek_wed = 3, + DSRC_DayOfWeek_thu = 2, + DSRC_DayOfWeek_fri = 1, + DSRC_DayOfWeek_sat = 0 +} e_DSRC_DayOfWeek; + +/* DSRC_DayOfWeek */ +typedef BIT_STRING_t DSRC_DayOfWeek_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_DSRC_DayOfWeek; +asn_struct_free_f DSRC_DayOfWeek_free; +asn_struct_print_f DSRC_DayOfWeek_print; +asn_constr_check_f DSRC_DayOfWeek_constraint; +ber_type_decoder_f DSRC_DayOfWeek_decode_ber; +der_type_encoder_f DSRC_DayOfWeek_encode_der; +xer_type_decoder_f DSRC_DayOfWeek_decode_xer; +xer_type_encoder_f DSRC_DayOfWeek_encode_xer; +oer_type_decoder_f DSRC_DayOfWeek_decode_oer; +oer_type_encoder_f DSRC_DayOfWeek_encode_oer; +per_type_decoder_f DSRC_DayOfWeek_decode_uper; +per_type_encoder_f DSRC_DayOfWeek_encode_uper; +per_type_decoder_f DSRC_DayOfWeek_decode_aper; +per_type_encoder_f DSRC_DayOfWeek_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _DSRC_DayOfWeek_H_ */ +#include "asn_internal.h" diff --git a/src/tmx/Asn_J2735/include/asn_j2735_r2020/TrafficControlSchedule.h b/src/tmx/Asn_J2735/include/asn_j2735_r2020/TrafficControlSchedule.h index d67837e49..1a985b63d 100644 --- a/src/tmx/Asn_J2735/include/asn_j2735_r2020/TrafficControlSchedule.h +++ b/src/tmx/Asn_J2735/include/asn_j2735_r2020/TrafficControlSchedule.h @@ -13,7 +13,7 @@ /* Including external dependencies */ #include "EpochMins.h" -#include "DayOfWeek.h" +#include "DSRC_DayOfWeek.h" #include "asn_SEQUENCE_OF.h" #include "constr_SEQUENCE_OF.h" #include "constr_SEQUENCE.h" @@ -30,7 +30,7 @@ struct DailySchedule; typedef struct TrafficControlSchedule { EpochMins_t start; EpochMins_t *end; /* OPTIONAL */ - DayOfWeek_t *dow; /* OPTIONAL */ + DSRC_DayOfWeek_t *dow; /* OPTIONAL */ struct TrafficControlSchedule__between { A_SEQUENCE_OF(struct DailySchedule) list; diff --git a/src/tmx/Asn_J2735/src/r2020/DSRC_DayOfWeek.c b/src/tmx/Asn_J2735/src/r2020/DSRC_DayOfWeek.c new file mode 100644 index 000000000..d2958927b --- /dev/null +++ b/src/tmx/Asn_J2735/src/r2020/DSRC_DayOfWeek.c @@ -0,0 +1,31 @@ +/* + * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) + * From ASN.1 module "DSRC" + * found in "J2735_201603_ASN_CC.asn" + * `asn1c -gen-PER -fcompound-names -fincludes-quoted -fskeletons-copy` + */ + +#include "DSRC_DayOfWeek.h" + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +static const ber_tlv_tag_t asn_DEF_DSRC_DayOfWeek_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_DSRC_DayOfWeek = { + "DayOfWeek", + "DayOfWeek", + &asn_OP_BIT_STRING, + asn_DEF_DSRC_DayOfWeek_tags_1, + sizeof(asn_DEF_DSRC_DayOfWeek_tags_1) + /sizeof(asn_DEF_DSRC_DayOfWeek_tags_1[0]), /* 1 */ + asn_DEF_DSRC_DayOfWeek_tags_1, /* Same as above */ + sizeof(asn_DEF_DSRC_DayOfWeek_tags_1) + /sizeof(asn_DEF_DSRC_DayOfWeek_tags_1[0]), /* 1 */ + { 0, 0, BIT_STRING_constraint }, + 0, 0, /* Defined elsewhere */ + &asn_SPC_BIT_STRING_specs /* Additional specs */ +}; + diff --git a/src/tmx/Asn_J2735/src/r2020/TrafficControlSchedule.c b/src/tmx/Asn_J2735/src/r2020/TrafficControlSchedule.c index 62b00054f..9080cd190 100644 --- a/src/tmx/Asn_J2735/src/r2020/TrafficControlSchedule.c +++ b/src/tmx/Asn_J2735/src/r2020/TrafficControlSchedule.c @@ -108,7 +108,7 @@ asn_TYPE_member_t asn_MBR_TrafficControlSchedule_1[] = { { ATF_POINTER, 3, offsetof(struct TrafficControlSchedule, dow), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_DayOfWeek, + &asn_DEF_DSRC_DayOfWeek, 0, { 0, 0, 0 }, 0, 0, /* No default value */