Skip to content

Commit f4079ca

Browse files
lreiherjpbusch
authored andcommitted
generate etsi_its_ivim_ts_coding
1 parent ae3e3df commit f4079ca

File tree

1,337 files changed

+118006
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,337 files changed

+118006
-0
lines changed

etsi_its_coding/etsi_its_coding/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<depend>etsi_its_cam_ts_coding</depend>
2020
<depend>etsi_its_cpm_ts_coding</depend>
2121
<depend>etsi_its_denm_coding</depend>
22+
<depend>etsi_its_ivim_ts_coding</depend>
2223
<depend>etsi_its_mapem_ts_coding</depend>
2324
<depend>etsi_its_spatem_ts_coding</depend>
2425
<depend>etsi_its_vam_ts_coding</depend>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(etsi_its_ivim_ts_coding)
3+
4+
find_package(ros_environment REQUIRED QUIET)
5+
set(ROS_VERSION $ENV{ROS_VERSION})
6+
7+
AUX_SOURCE_DIRECTORY(src SRC_FILES)
8+
9+
# === ROS 2 (AMENT) ============================================================
10+
if(${ROS_VERSION} EQUAL 2)
11+
12+
find_package(ament_cmake REQUIRED)
13+
14+
add_library(${PROJECT_NAME} SHARED
15+
${SRC_FILES}
16+
)
17+
18+
target_include_directories(${PROJECT_NAME} PUBLIC
19+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
20+
$<INSTALL_INTERFACE:include>
21+
)
22+
23+
ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET)
24+
25+
install(DIRECTORY include/
26+
DESTINATION include
27+
)
28+
29+
install(TARGETS ${PROJECT_NAME}
30+
EXPORT ${PROJECT_NAME}Targets
31+
ARCHIVE DESTINATION lib
32+
LIBRARY DESTINATION lib
33+
RUNTIME DESTINATION lib
34+
INCLUDES DESTINATION include
35+
)
36+
37+
ament_package()
38+
39+
# === ROS (CATKIN) =============================================================
40+
elseif(${ROS_VERSION} EQUAL 1)
41+
42+
find_package(catkin REQUIRED)
43+
44+
catkin_package(
45+
INCLUDE_DIRS include
46+
LIBRARIES ${PROJECT_NAME}
47+
)
48+
49+
include_directories(
50+
include
51+
${catkin_INCLUDE_DIRS}
52+
)
53+
54+
add_library(${PROJECT_NAME} SHARED
55+
${SRC_FILES}
56+
)
57+
58+
install(TARGETS ${PROJECT_NAME}
59+
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
60+
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
61+
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
62+
)
63+
64+
install(DIRECTORY include/${PROJECT_NAME}/
65+
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
66+
FILES_MATCHING PATTERN "*.h"
67+
)
68+
69+
endif()
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*-
2+
* Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3+
* Redistribution and modifications are permitted subject to BSD license.
4+
*/
5+
#ifndef ASN_TYPE_ANY_H
6+
#define ASN_TYPE_ANY_H
7+
8+
#include <etsi_its_ivim_ts_coding/OCTET_STRING.h> /* Implemented via OCTET STRING type */
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
typedef struct ANY {
15+
uint8_t *buf; /* BER-encoded ANY contents */
16+
int size; /* Size of the above buffer */
17+
18+
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
19+
} ANY_t;
20+
21+
extern asn_TYPE_descriptor_t asn_DEF_ANY;
22+
extern asn_TYPE_operation_t asn_OP_ANY;
23+
extern asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs;
24+
25+
#define ANY_free OCTET_STRING_free
26+
27+
#if !defined(ASN_DISABLE_PRINT_SUPPORT)
28+
#define ANY_print OCTET_STRING_print
29+
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
30+
31+
#define ANY_compare OCTET_STRING_compare
32+
#define ANY_copy OCTET_STRING_copy
33+
34+
#define ANY_constraint asn_generic_no_constraint
35+
36+
#if !defined(ASN_DISABLE_BER_SUPPORT)
37+
#define ANY_decode_ber OCTET_STRING_decode_ber
38+
#define ANY_encode_der OCTET_STRING_encode_der
39+
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
40+
41+
#if !defined(ASN_DISABLE_XER_SUPPORT)
42+
#define ANY_decode_xer OCTET_STRING_decode_xer_hex
43+
xer_type_encoder_f ANY_encode_xer;
44+
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
45+
46+
#if !defined(ASN_DISABLE_JER_SUPPORT)
47+
jer_type_decoder_f ANY_decode_jer;
48+
jer_type_encoder_f ANY_encode_jer;
49+
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
50+
51+
#if !defined(ASN_DISABLE_UPER_SUPPORT)
52+
per_type_decoder_f ANY_decode_uper;
53+
per_type_encoder_f ANY_encode_uper;
54+
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
55+
#if !defined(ASN_DISABLE_APER_SUPPORT)
56+
per_type_decoder_f ANY_decode_aper;
57+
per_type_encoder_f ANY_encode_aper;
58+
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
59+
60+
/******************************
61+
* Handy conversion routines. *
62+
******************************/
63+
64+
/* Convert another ASN.1 type into the ANY. This implies DER encoding. */
65+
int ANY_fromType(ANY_t *, asn_TYPE_descriptor_t *td, void *struct_ptr);
66+
ANY_t *ANY_new_fromType(asn_TYPE_descriptor_t *td, void *struct_ptr);
67+
#if !defined(ASN_DISABLE_APER_SUPPORT)
68+
int ANY_fromType_aper(ANY_t *st, asn_TYPE_descriptor_t *td, void *sptr);
69+
ANY_t *ANY_new_fromType_aper(asn_TYPE_descriptor_t *td, void *sptr);
70+
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
71+
72+
/* Convert the contents of the ANY type into the specified type. */
73+
int ANY_to_type(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
74+
#if !defined(ASN_DISABLE_APER_SUPPORT)
75+
int ANY_to_type_aper(ANY_t *, asn_TYPE_descriptor_t *td, void **struct_ptr);
76+
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
77+
78+
#define ANY_fromBuf(s, buf, size) OCTET_STRING_fromBuf((s), (buf), (size))
79+
#define ANY_new_fromBuf(buf, size) OCTET_STRING_new_fromBuf( \
80+
&asn_DEF_ANY, (buf), (size))
81+
82+
#ifdef __cplusplus
83+
}
84+
#endif
85+
86+
#endif /* ASN_TYPE_ANY_H */
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*-
2+
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3+
* Redistribution and modifications are permitted subject to BSD license.
4+
*/
5+
#ifndef _BIT_STRING_H_
6+
#define _BIT_STRING_H_
7+
8+
#include <etsi_its_ivim_ts_coding/OCTET_STRING.h> /* Some help from OCTET STRING */
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
typedef struct BIT_STRING_s {
15+
uint8_t *buf; /* BIT STRING body */
16+
size_t size; /* Size of the above buffer */
17+
18+
int bits_unused;/* Unused trailing bits in the last octet (0..7) */
19+
20+
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
21+
} BIT_STRING_t;
22+
23+
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
24+
extern asn_TYPE_operation_t asn_OP_BIT_STRING;
25+
extern asn_OCTET_STRING_specifics_t asn_SPC_BIT_STRING_specs;
26+
27+
#define BIT_STRING_free OCTET_STRING_free
28+
29+
#if !defined(ASN_DISABLE_PRINT_SUPPORT)
30+
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
31+
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
32+
33+
asn_struct_compare_f BIT_STRING_compare;
34+
asn_struct_copy_f BIT_STRING_copy;
35+
36+
asn_constr_check_f BIT_STRING_constraint;
37+
38+
#if !defined(ASN_DISABLE_BER_SUPPORT)
39+
#define BIT_STRING_decode_ber OCTET_STRING_decode_ber
40+
#define BIT_STRING_encode_der OCTET_STRING_encode_der
41+
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
42+
43+
#if !defined(ASN_DISABLE_XER_SUPPORT)
44+
#define BIT_STRING_decode_xer OCTET_STRING_decode_xer_binary
45+
xer_type_encoder_f BIT_STRING_encode_xer;
46+
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
47+
48+
#if !defined(ASN_DISABLE_JER_SUPPORT)
49+
jer_type_decoder_f BIT_STRING_decode_jer;
50+
jer_type_encoder_f BIT_STRING_encode_jer;
51+
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
52+
53+
#if !defined(ASN_DISABLE_OER_SUPPORT)
54+
oer_type_decoder_f BIT_STRING_decode_oer;
55+
oer_type_encoder_f BIT_STRING_encode_oer;
56+
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
57+
58+
#if !defined(ASN_DISABLE_UPER_SUPPORT)
59+
per_type_decoder_f BIT_STRING_decode_uper;
60+
per_type_encoder_f BIT_STRING_encode_uper;
61+
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
62+
#if !defined(ASN_DISABLE_APER_SUPPORT)
63+
#define BIT_STRING_decode_aper OCTET_STRING_decode_aper
64+
#define BIT_STRING_encode_aper OCTET_STRING_encode_aper
65+
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
66+
67+
#if !defined(ASN_DISABLE_RFILL_SUPPORT)
68+
asn_random_fill_f BIT_STRING_random_fill;
69+
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
70+
71+
const BIT_STRING_t *BIT_STRING__compactify(const BIT_STRING_t *st, BIT_STRING_t *tmp);
72+
73+
#ifdef __cplusplus
74+
}
75+
#endif
76+
77+
#endif /* _BIT_STRING_H_ */
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*-
2+
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3+
* Redistribution and modifications are permitted subject to BSD license.
4+
*/
5+
#ifndef _BOOLEAN_H_
6+
#define _BOOLEAN_H_
7+
8+
#include <etsi_its_ivim_ts_coding/asn_application.h>
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
/*
15+
* The underlying integer may contain various values, but everything
16+
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
17+
* yield non-zero values different from 1, beware.
18+
*/
19+
typedef unsigned BOOLEAN_t;
20+
21+
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
22+
extern asn_TYPE_operation_t asn_OP_BOOLEAN;
23+
24+
asn_struct_free_f BOOLEAN_free;
25+
26+
#if !defined(ASN_DISABLE_PRINT_SUPPORT)
27+
asn_struct_print_f BOOLEAN_print;
28+
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
29+
30+
asn_struct_compare_f BOOLEAN_compare;
31+
asn_struct_copy_f BOOLEAN_copy;
32+
33+
#define BOOLEAN_constraint asn_generic_no_constraint
34+
35+
#if !defined(ASN_DISABLE_BER_SUPPORT)
36+
ber_type_decoder_f BOOLEAN_decode_ber;
37+
der_type_encoder_f BOOLEAN_encode_der;
38+
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
39+
40+
#if !defined(ASN_DISABLE_XER_SUPPORT)
41+
xer_type_decoder_f BOOLEAN_decode_xer;
42+
xer_type_encoder_f BOOLEAN_encode_xer;
43+
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
44+
45+
#if !defined(ASN_DISABLE_JER_SUPPORT)
46+
jer_type_decoder_f BOOLEAN_decode_jer;
47+
jer_type_encoder_f BOOLEAN_encode_jer;
48+
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
49+
50+
#if !defined(ASN_DISABLE_OER_SUPPORT)
51+
oer_type_decoder_f BOOLEAN_decode_oer;
52+
oer_type_encoder_f BOOLEAN_encode_oer;
53+
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
54+
55+
#if !defined(ASN_DISABLE_UPER_SUPPORT)
56+
per_type_decoder_f BOOLEAN_decode_uper;
57+
per_type_encoder_f BOOLEAN_encode_uper;
58+
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
59+
#if !defined(ASN_DISABLE_APER_SUPPORT)
60+
per_type_decoder_f BOOLEAN_decode_aper;
61+
per_type_encoder_f BOOLEAN_encode_aper;
62+
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
63+
64+
#if !defined(ASN_DISABLE_RFILL_SUPPORT)
65+
asn_random_fill_f BOOLEAN_random_fill;
66+
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
67+
68+
#ifdef __cplusplus
69+
}
70+
#endif
71+
72+
#endif /* _BOOLEAN_H_ */
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*-
2+
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3+
* Redistribution and modifications are permitted subject to BSD license.
4+
*/
5+
#ifndef _ENUMERATED_H_
6+
#define _ENUMERATED_H_
7+
8+
#include <etsi_its_ivim_ts_coding/INTEGER.h>
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */
15+
16+
extern asn_TYPE_descriptor_t asn_DEF_ENUMERATED;
17+
extern asn_TYPE_operation_t asn_OP_ENUMERATED;
18+
19+
#define ENUMERATED_free ASN__PRIMITIVE_TYPE_free
20+
21+
#if !defined(ASN_DISABLE_PRINT_SUPPORT)
22+
#define ENUMERATED_print INTEGER_print
23+
#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
24+
25+
#define ENUMERATED_compare INTEGER_compare
26+
#define ENUMERATED_copy INTEGER_copy
27+
28+
#define ENUMERATED_constraint asn_generic_no_constraint
29+
30+
#if !defined(ASN_DISABLE_BER_SUPPORT)
31+
#define ENUMERATED_decode_ber ber_decode_primitive
32+
#define ENUMERATED_encode_der INTEGER_encode_der
33+
#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
34+
35+
#if !defined(ASN_DISABLE_XER_SUPPORT)
36+
#define ENUMERATED_decode_xer INTEGER_decode_xer
37+
#define ENUMERATED_encode_xer INTEGER_encode_xer
38+
#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
39+
40+
#if !defined(ASN_DISABLE_JER_SUPPORT)
41+
jer_type_decoder_f ENUMERATED_decode_jer;
42+
#define ENUMERATED_encode_jer INTEGER_encode_jer
43+
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
44+
45+
#if !defined(ASN_DISABLE_OER_SUPPORT)
46+
oer_type_decoder_f ENUMERATED_decode_oer;
47+
oer_type_encoder_f ENUMERATED_encode_oer;
48+
#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
49+
50+
#if !defined(ASN_DISABLE_UPER_SUPPORT)
51+
per_type_decoder_f ENUMERATED_decode_uper;
52+
per_type_encoder_f ENUMERATED_encode_uper;
53+
#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
54+
#if !defined(ASN_DISABLE_APER_SUPPORT)
55+
per_type_decoder_f ENUMERATED_decode_aper;
56+
per_type_encoder_f ENUMERATED_encode_aper;
57+
#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
58+
59+
#if !defined(ASN_DISABLE_RFILL_SUPPORT)
60+
#define ENUMERATED_random_fill INTEGER_random_fill
61+
#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
62+
63+
#ifdef __cplusplus
64+
}
65+
#endif
66+
67+
#endif /* _ENUMERATED_H_ */

0 commit comments

Comments
 (0)