ADTF Device Toolbox SDK
Loading...
Searching...
No Matches
stream_meta_type_flexray_properties.h
Go to the documentation of this file.
1
16
17#pragma once
18
22namespace adtf
23{
27namespace devicetb
28{
32namespace sdk
33{
37namespace flexray
38{
42namespace axle
43{
44#define ADTF_MEDIA_DESC_FLEXRAYDATA_NAME "tFlexRayData"
45
46#define ADTF_MEDIA_DESC_FLEXRAYDATA_ENUM "<enums>" \
47 "<enum name=\"tFR_TAG\" type=\"tUInt8\">"\
48 "<element name=\"FR_TAG_CYCLESTART\" value=\"1\" />"\
49 "<element name=\"FR_TAG_FRAME\" value=\"2\" />"\
50 "<element name=\"FR_TAG_INVALID\" value=\"0\" />"\
51 "<element name=\"FR_TAG_PDU\" value=\"3\" />"\
52 "<element name=\"FR_TAG_SYNC\" value=\"4\" />"\
53 "</enum>"\
54 "</enums>"
55
61#define ADTF_MEDIA_DESC_FLEXRAYDATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"no\"?>"\
62 "<adtf:ddl xmlns:adtf=\"adtf\">"\
63 ADTF_MEDIA_DESC_FLEXRAYDATA_ENUM \
64 "<structs>"\
65 "<struct name=\"" ADTF_MEDIA_DESC_FLEXRAYDATA_NAME "\" alignment=\"1\" version=\"1\">" \
66 "<element type=\"tUInt16\" name=\"nSize\" bytepos=\"0\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
67 "<element type=\"tFR_TAG\" name=\"nTag\" bytepos=\"2\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
68 "<element type=\"tUInt8\" name=\"nReserved\" bytepos=\"3\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
69 "<element type=\"tUInt64\" name=\"nTimeStamp\" bytepos=\"4\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
70 "</struct>"\
71 "</structs>"\
72 "</adtf:ddl>"
73
77struct stream_meta_type_flexray_properties
78{
79 stream_meta_type_flexray_properties() = default;
80
81
82 static constexpr const char* const MetaTypeName = "adtf/devicetb/flexray";
86 static constexpr const char* const FlexrayChannelNumber = "channel";
90 static constexpr const char* const FlexrayDatabaseName = "database";
94 static constexpr const char* const FlexrayProjectName = "project";
98 static constexpr const char* const FlexrayClusterName = "cluster";
99
100 /*
101 * The name of the structure that is contained within the samples.
102 */
103 static constexpr const char* const DDLStructureName = ADTF_MEDIA_DESC_FLEXRAYDATA_NAME;
104
105 /*
106 * Wether the samples contain the serialized or deserialized representation.
107 */
108 static constexpr const bool DDLSerialized = false;
109
110 /*
111 * The DDL defintion of the structure that is contained within the samples.
112 */
113 static constexpr const char* const DDLDefinitions = ADTF_MEDIA_DESC_FLEXRAYDATA;
114};
115
116} // end namespace axle
117
119
120} // end namespace flexray
121
122} // end namespace sdk
123
124} // end namespace devicetb
125
126} // end namespace adtf
Namespace for functionality provided by V3.0.0.
Definition flexray_coder_intf.h:40
Namespace for FlexRay in ADTF-Devicetoolbox.
Definition flexray_coder_intf.h:34
axle::stream_meta_type_flexray_properties stream_meta_type_flexray_properties
Definition stream_meta_type_flexray_properties.h:118
Namespace for SDK of ADTF-Devicetoolbox.
Definition bus_database_intf.h:42
Devicetoolbox - Namespace.
Definition bus_database_intf.h:36
ADTF - Namespace.
Definition bus_database_intf.h:30
#define ADTF_MEDIA_DESC_FLEXRAYDATA
Definition stream_meta_type_flexray_properties.h:61
Definition stream_meta_type_flexray_properties.h:78
static constexpr const char *const FlexrayClusterName
Definition stream_meta_type_flexray_properties.h:98
static constexpr const char *const FlexrayProjectName
Definition stream_meta_type_flexray_properties.h:94
static constexpr const char *const FlexrayChannelNumber
Definition stream_meta_type_flexray_properties.h:86
static constexpr const char *const FlexrayDatabaseName
Definition stream_meta_type_flexray_properties.h:90