Skip to content

Commit

Permalink
modified: src/tmx/Asn_J2735/include/asn_j2735_r2020/BasicSafetyMessa…
Browse files Browse the repository at this point in the history
…ge-addGrpCarma.h

	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/DestinationType.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/ENUMERATED.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/EstimatedTimeType.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/GeneralString.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/GeneralizedTime.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/MobilityNeeds.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/MobilityNeedsList.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/MobilityNeedsType.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/ModeOfTransportType.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/NativeReal.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/NumericString.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/PersonalMobilityMessage.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/PersonalMobilityMessageStatusType.h
	modified:   src/tmx/Asn_J2735/include/asn_j2735_r2020/Position3D-addGrpCarma.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/PrintableString.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/REAL.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/RELATIVE-OID.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/SeatCount.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/T61String.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/TeletexString.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/UUIDType.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/VehicleDescriptionType.h
	new file:   src/tmx/Asn_J2735/include/asn_j2735_r2020/VideotexString.h
	modified:   src/tmx/Asn_J2735/include/asn_j2735_r2020/constr_SEQUENCE.h
	new file:   src/tmx/Asn_J2735/src/r2020/.vscode/c_cpp_properties.json
	new file:   src/tmx/Asn_J2735/src/r2020/.vscode/launch.json
	new file:   src/tmx/Asn_J2735/src/r2020/.vscode/settings.json
	modified:   src/tmx/Asn_J2735/src/r2020/RegionalExtension.c
	modified:   src/tmx/TmxUtils/test/J2735MessageTest.cpp
  • Loading branch information
jwillmartin committed Nov 30, 2023
1 parent a8b9052 commit d1eda9f
Show file tree
Hide file tree
Showing 30 changed files with 1,116 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#define _BasicSafetyMessage_addGrpCarma_H_


#include <asn_application.h>
#include "asn_application.h"

/* Including external dependencies */
#include <asn_SEQUENCE_OF.h>
#include <constr_SEQUENCE_OF.h>
#include <constr_SEQUENCE.h>
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"
#include "constr_SEQUENCE.h"

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -53,4 +53,4 @@ extern asn_TYPE_member_t asn_MBR_BasicSafetyMessage_addGrpCarma_1[1];
#include "Position3D-addGrpCarma.h"

#endif /* _BasicSafetyMessage_addGrpCarma_H_ */
#include <asn_internal.h>
#include "asn_internal.h"
42 changes: 42 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/DestinationType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../J2735_201603DA_with_PMM.ASN"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted -S/home/gmb/TMX-OAM/Build/asn1c/skeletons`
*/

#ifndef _DestinationType_H_
#define _DestinationType_H_


#include "asn_application.h"

/* Including external dependencies */
#include "Longitude.h"
#include "Latitude.h"
#include "constr_SEQUENCE.h"

#ifdef __cplusplus
extern "C" {
#endif

/* DestinationType */
typedef struct DestinationType {
Longitude_t lon;
Latitude_t lat;

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} DestinationType_t;

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_DestinationType;
extern asn_SEQUENCE_specifics_t asn_SPC_DestinationType_specs_1;
extern asn_TYPE_member_t asn_MBR_DestinationType_1[2];

#ifdef __cplusplus
}
#endif

#endif /* _DestinationType_H_ */
#include "asn_internal.h"
35 changes: 35 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/ENUMERATED.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*-
* Copyright (c) 2003, 2005 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _ENUMERATED_H_
#define _ENUMERATED_H_

#include <INTEGER.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */

extern asn_TYPE_descriptor_t asn_DEF_ENUMERATED;
extern asn_TYPE_operation_t asn_OP_ENUMERATED;

per_type_decoder_f ENUMERATED_decode_uper;
per_type_encoder_f ENUMERATED_encode_uper;

#define ENUMERATED_free ASN__PRIMITIVE_TYPE_free
#define ENUMERATED_print INTEGER_print
#define ENUMERATED_compare INTEGER_compare
#define ENUMERATED_constraint asn_generic_no_constraint
#define ENUMERATED_decode_ber ber_decode_primitive
#define ENUMERATED_encode_der INTEGER_encode_der
#define ENUMERATED_decode_xer INTEGER_decode_xer
#define ENUMERATED_encode_xer INTEGER_encode_xer

#ifdef __cplusplus
}
#endif

#endif /* _ENUMERATED_H_ */
42 changes: 42 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/EstimatedTimeType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../J2735_201603DA_with_PMM.ASN"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted -S/home/gmb/TMX-OAM/Build/asn1c/skeletons`
*/

#ifndef _EstimatedTimeType_H_
#define _EstimatedTimeType_H_


#include "asn_application.h"

/* Including external dependencies */
#include "NativeInteger.h"

#ifdef __cplusplus
extern "C" {
#endif

/* EstimatedTimeType */
typedef long EstimatedTimeType_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_EstimatedTimeType_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_EstimatedTimeType;
asn_struct_free_f EstimatedTimeType_free;
asn_struct_print_f EstimatedTimeType_print;
asn_constr_check_f EstimatedTimeType_constraint;
ber_type_decoder_f EstimatedTimeType_decode_ber;
der_type_encoder_f EstimatedTimeType_encode_der;
xer_type_decoder_f EstimatedTimeType_decode_xer;
xer_type_encoder_f EstimatedTimeType_encode_xer;
per_type_decoder_f EstimatedTimeType_decode_uper;
per_type_encoder_f EstimatedTimeType_encode_uper;

#ifdef __cplusplus
}
#endif

#endif /* _EstimatedTimeType_H_ */
#include "asn_internal.h"
34 changes: 34 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/GeneralString.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*-
* Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _GeneralString_H_
#define _GeneralString_H_

#include <OCTET_STRING.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef OCTET_STRING_t GeneralString_t; /* Implemented via OCTET STRING */

extern asn_TYPE_descriptor_t asn_DEF_GeneralString;
extern asn_TYPE_operation_t asn_OP_GeneralString;

#define GeneralString_free OCTET_STRING_free
#define GeneralString_print OCTET_STRING_print
#define GeneralString_compare OCTET_STRING_compare
#define GeneralString_constraint asn_generic_unknown_constraint
#define GeneralString_decode_ber OCTET_STRING_decode_ber
#define GeneralString_encode_der OCTET_STRING_encode_der
#define GeneralString_decode_xer OCTET_STRING_decode_xer_hex
#define GeneralString_encode_xer OCTET_STRING_encode_xer
#define GeneralString_decode_uper OCTET_STRING_decode_uper
#define GeneralString_encode_uper OCTET_STRING_encode_uper

#ifdef __cplusplus
}
#endif

#endif /* _GeneralString_H_ */
77 changes: 77 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/GeneralizedTime.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*-
* Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef _GeneralizedTime_H_
#define _GeneralizedTime_H_

#include <OCTET_STRING.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef OCTET_STRING_t GeneralizedTime_t; /* Implemented via OCTET STRING */

extern asn_TYPE_descriptor_t asn_DEF_GeneralizedTime;
extern asn_TYPE_operation_t asn_OP_GeneralizedTime;

asn_struct_print_f GeneralizedTime_print;
asn_constr_check_f GeneralizedTime_constraint;
der_type_encoder_f GeneralizedTime_encode_der;
xer_type_encoder_f GeneralizedTime_encode_xer;

#define GeneralizedTime_free OCTET_STRING_free
#define GeneralizedTime_compare OCTET_STRING_compare
#define GeneralizedTime_decode_ber OCTET_STRING_decode_ber
#define GeneralizedTime_decode_xer OCTET_STRING_decode_xer_utf8
#define GeneralizedTime_decode_uper OCTET_STRING_decode_uper
#define GeneralizedTime_encode_uper OCTET_STRING_encode_uper

/***********************
* Some handy helpers. *
***********************/

struct tm; /* <time.h> */

/*
* Convert a GeneralizedTime structure into time_t
* and optionally into struct tm.
* If as_gmt is given, the resulting _optional_tm4fill will have a GMT zone,
* instead of default local one.
* On error returns -1 and errno set to EINVAL
*/
time_t asn_GT2time(const GeneralizedTime_t *, struct tm *_optional_tm4fill,
int as_gmt);

/* A version of the above function also returning the fractions of seconds */
time_t asn_GT2time_frac(const GeneralizedTime_t *,
int *frac_value, int *frac_digits, /* (value / (10 ^ digits)) */
struct tm *_optional_tm4fill, int as_gmt);

/*
* Another version returning fractions with defined precision
* For example, parsing of the time ending with ".1" seconds
* with frac_digits=3 (msec) would yield frac_value = 100.
*/
time_t asn_GT2time_prec(const GeneralizedTime_t *,
int *frac_value, int frac_digits,
struct tm *_optional_tm4fill, int as_gmt);

/*
* Convert a struct tm into GeneralizedTime.
* If _optional_gt is not given, this function will try to allocate one.
* If force_gmt is given, the resulting GeneralizedTime will be forced
* into a GMT time zone (encoding ends with a "Z").
* On error, this function returns 0 and sets errno.
*/
GeneralizedTime_t *asn_time2GT(GeneralizedTime_t *_optional_gt,
const struct tm *, int force_gmt);
GeneralizedTime_t *asn_time2GT_frac(GeneralizedTime_t *_optional_gt,
const struct tm *, int frac_value, int frac_digits, int force_gmt);

#ifdef __cplusplus
}
#endif

#endif /* _GeneralizedTime_H_ */
42 changes: 42 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/MobilityNeeds.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../J2735_201603DA_with_PMM.ASN"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted -S/home/gmb/TMX-OAM/Build/asn1c/skeletons`
*/

#ifndef _MobilityNeeds_H_
#define _MobilityNeeds_H_


#include "asn_application.h"

/* Including external dependencies */
#include "MobilityNeedsType.h"
#include "SeatCount.h"
#include "constr_SEQUENCE.h"

#ifdef __cplusplus
extern "C" {
#endif

/* MobilityNeeds */
typedef struct MobilityNeeds {
MobilityNeedsType_t type;
SeatCount_t count;

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} MobilityNeeds_t;

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_MobilityNeeds;
extern asn_SEQUENCE_specifics_t asn_SPC_MobilityNeeds_specs_1;
extern asn_TYPE_member_t asn_MBR_MobilityNeeds_1[2];

#ifdef __cplusplus
}
#endif

#endif /* _MobilityNeeds_H_ */
#include "asn_internal.h"
47 changes: 47 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/MobilityNeedsList.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../J2735_201603DA_with_PMM.ASN"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted -S/home/gmb/TMX-OAM/Build/asn1c/skeletons`
*/

#ifndef _MobilityNeedsList_H_
#define _MobilityNeedsList_H_


#include "asn_application.h"

/* Including external dependencies */
#include "asn_SEQUENCE_OF.h"
#include "constr_SEQUENCE_OF.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Forward declarations */
struct MobilityNeeds;

/* MobilityNeedsList */
typedef struct MobilityNeedsList {
A_SEQUENCE_OF(struct MobilityNeeds) list;

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} MobilityNeedsList_t;

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_MobilityNeedsList;
extern asn_SET_OF_specifics_t asn_SPC_MobilityNeedsList_specs_1;
extern asn_TYPE_member_t asn_MBR_MobilityNeedsList_1[1];
extern asn_per_constraints_t asn_PER_type_MobilityNeedsList_constr_1;

#ifdef __cplusplus
}
#endif

/* Referred external types */
#include "MobilityNeeds.h"

#endif /* _MobilityNeedsList_H_ */
#include "asn_internal.h"
50 changes: 50 additions & 0 deletions src/tmx/Asn_J2735/include/asn_j2735_r2020/MobilityNeedsType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../J2735_201603DA_with_PMM.ASN"
* `asn1c -gen-PER -fcompound-names -fincludes-quoted -S/home/gmb/TMX-OAM/Build/asn1c/skeletons`
*/

#ifndef _MobilityNeedsType_H_
#define _MobilityNeedsType_H_


#include "asn_application.h"

/* Including external dependencies */
#include "NativeEnumerated.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Dependencies */
typedef enum MobilityNeedsType {
MobilityNeedsType_noSpecialNeeds = 0,
MobilityNeedsType_wheelchair = 1,
MobilityNeedsType_needsSeat = 2
} e_MobilityNeedsType;

/* MobilityNeedsType */
typedef long MobilityNeedsType_t;

/* Implementation */
extern asn_per_constraints_t asn_PER_type_MobilityNeedsType_constr_1;
extern asn_TYPE_descriptor_t asn_DEF_MobilityNeedsType;
extern const asn_INTEGER_specifics_t asn_SPC_MobilityNeedsType_specs_1;
asn_struct_free_f MobilityNeedsType_free;
asn_struct_print_f MobilityNeedsType_print;
asn_constr_check_f MobilityNeedsType_constraint;
ber_type_decoder_f MobilityNeedsType_decode_ber;
der_type_encoder_f MobilityNeedsType_encode_der;
xer_type_decoder_f MobilityNeedsType_decode_xer;
xer_type_encoder_f MobilityNeedsType_encode_xer;
per_type_decoder_f MobilityNeedsType_decode_uper;
per_type_encoder_f MobilityNeedsType_encode_uper;

#ifdef __cplusplus
}
#endif

#endif /* _MobilityNeedsType_H_ */
#include "asn_internal.h"
Loading

0 comments on commit d1eda9f

Please sign in to comment.