ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
stream_meta_type_flexray_properties.h
Go to the documentation of this file.
1 
17 #pragma once
18 
22 namespace adtf
23 {
27 namespace devicetb
28 {
32 namespace sdk
33 {
37 namespace flexray
38 {
42 namespace 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 
78 {
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
axle::stream_meta_type_flexray_properties stream_meta_type_flexray_properties
Definition of Stream Meta Type FlexRay Messages.
ADTF - Namespace.
#define ADTF_MEDIA_DESC_FLEXRAYDATA
This Macro defines the description of a adtf::devicetb::sdk::flexray::axle::tFlexRayData structure us...
static constexpr const char *const FlexrayChannelNumber
FlexRay communication channel number.
static constexpr const char *const FlexrayClusterName
FlexRay database cluster name.
static constexpr const char *const FlexrayDatabaseName
FlexRay database name.
static constexpr const char *const FlexrayProjectName
FlexRay database project id name.