ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
stream_meta_type_canfd_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 canfd
38 {
42 namespace axle
43 {
47 #define ADTF_MEDIA_DESC_CANFDDATA_NAME "tCANFDData"
48 
49 #define ADTF_MEDIA_DESC_CANFDDATA_ENUM "<enums>" \
50  "<enum name=\"eMessageTag\" type=\"tUInt8\">" \
51  "<element name=\"MT_Data\" value=\"0\" />" \
52  "<element name=\"MT_Status\" value=\"1\" />" \
53  "</enum>" \
54  "<enum name=\"eDataFlags\" type=\"tUInt16\">" \
55  "<element name=\"DF_ERROR_FRAME\" value=\"1\" />" \
56  "<element name=\"DF_NONE\" value=\"0\" />" \
57  "<element name=\"DF_REMOTE_FRAME\" value=\"2\" />" \
58  "<element name=\"DF_TX_COMPLETED\" value=\"4\" />" \
59  "<element name=\"DF_FLEXIBLE_DATARATE\" value=\"8\" />" \
60  "</enum>" \
61  "</enums>"
62 
63 #define ADTF_MEDIA_DESC_CANFDDATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"no\"?>"\
64  "<adtf:ddl xmlns:adtf=\"adtf\">"\
65  ADTF_MEDIA_DESC_CANFDDATA_ENUM \
66  "<structs>"\
67  "<struct name=\"" ADTF_MEDIA_DESC_CANFDDATA_NAME "\" alignment=\"1\" version=\"1\">" \
68  "<element type=\"eMessageTag\" name=\"ui8Tag\" bytepos=\"0\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
69  "<element type=\"tUInt8\" name=\"ui8Channel\" bytepos=\"1\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
70  "<element type=\"tInt64\" name=\"tmTimeStamp\" bytepos=\"2\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
71  "<element type=\"tUInt32\" name=\"ui32Id\" bytepos=\"10\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
72  "<element type=\"tUInt8\" name=\"ui8Length\" bytepos=\"14\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
73  "<element type=\"tUInt8\" name=\"ui8Reserved\" bytepos=\"15\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
74  "<element type=\"eDataFlags\" name=\"ui16Flags\" bytepos=\"16\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
75  "<element type=\"tUInt16\" name=\"ui16Reserved\" bytepos=\"18\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
76  "<element type=\"tUInt32\" name=\"ui32Reserved\" bytepos=\"20\" arraysize=\"1\" byteorder=\"LE\" alignment=\"1\"/>" \
77  "<element type=\"tUInt8\" name=\"aui8Data\" bytepos=\"24\" arraysize=\"64\" byteorder=\"LE\" alignment=\"1\"/>" \
78  "</struct>"\
79  "</structs>"\
80  "</adtf:ddl>"
81 
86 {
88 
89 
90  static constexpr const char* const MetaTypeName = "adtf/devicetb/canfd";
94  static constexpr const char* const CanFdChannelNumber = "channel";
98  static constexpr const char* const CanFdDatabaseName = "database";
102  static constexpr const char* const CanFdNetworkName = "network";
103 
104  /*
105  * The name of the structure that is contained within the samples.
106  */
107  static constexpr const char* const DDLStructureName = ADTF_MEDIA_DESC_CANFDDATA_NAME;
108 
109  /*
110  * Wether the samples contain the serialized or deserialized representation.
111  */
112  static constexpr const bool DDLSerialized = false;
113 
114  /*
115  * The DDL defintion of the structure that is contained within the samples.
116  */
117  static constexpr const char* const DDLDefinitions = ADTF_MEDIA_DESC_CANFDDATA;
118 };
119 
120 } // end namespace axle
121 
123 
124 } // end namespace canfd
125 
126 } // end namespace sdk
127 
128 } // end namespace devicetb
129 
130 } // end namespace adtf
axle::stream_meta_type_canfd_properties stream_meta_type_canfd_properties
Definition of Stream Meta Type CANFD Messages.
ADTF - Namespace.
#define ADTF_MEDIA_DESC_CANFDDATA_NAME
This Macro is the type name of the devicetb::sdk::canfd::tCANFDData to describe a sample stream type.
static constexpr const char *const CanFdChannelNumber
CAN FD communication channel number.
static constexpr const char *const CanFdNetworkName
CAN FD database network name.
static constexpr const char *const CanFdDatabaseName
CAN FD database name.