ADTF Device Toolbox SDK
Loading...
Searching...
No Matches
stream_meta_type_can_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 can
38{
42namespace axle
43{
47#define ADTF_MEDIA_DESC_CANDATA_NAME "tCANData"
48
49#define ADTF_MEDIA_DESC_CANDATA_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_CANDATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"no\"?>"\
64 "<adtf:ddl xmlns:adtf=\"adtf\">"\
65 ADTF_MEDIA_DESC_CANDATA_ENUM \
66 "<structs>"\
67 "<struct name=\"" ADTF_MEDIA_DESC_CANDATA_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=\"8\" byteorder=\"LE\" alignment=\"1\"/>" \
78 "</struct>"\
79 "</structs>"\
80 "</adtf:ddl>"
81
82
86struct stream_meta_type_can_properties
87{
88 stream_meta_type_can_properties() = default;
89
90 static constexpr const char* const MetaTypeName = "adtf/devicetb/can";
91
95 static constexpr const char* const CanChannelNumber = "channel";
99 static constexpr const char* const CanDatabaseName = "database";
103 static constexpr const char* const CanNetworkName = "network";
104
105 /*
106 * The name of the structure that is contained within the samples.
107 */
108 static constexpr const char* const DDLStructureName = ADTF_MEDIA_DESC_CANDATA_NAME;
109
110 /*
111 * Wether the samples contain the serialized or deserialized representation.
112 */
113 static constexpr const bool DDLSerialized = false;
114
115 /*
116 * The DDL defintion of the structure that is contained within the samples.
117 */
118 static constexpr const char* const DDLDefinitions = ADTF_MEDIA_DESC_CANDATA;
119};
120
121} // end namespace axle
122
124
125} // end namespace can
126
127} // end namespace sdk
128
129} // end namespace devicetb
130
131} // end namespace adtf
Namespace for functionality provided by V3.0.0.
Definition can_coder_intf.h:41
Namespace for CAN in ADTF-Devicetoolbox.
Definition can_coder_intf.h:35
axle::stream_meta_type_can_properties stream_meta_type_can_properties
Definition stream_meta_type_can_properties.h:123
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_CANDATA_NAME
Definition stream_meta_type_can_properties.h:47
Definition stream_meta_type_can_properties.h:87
static constexpr const char *const CanNetworkName
Definition stream_meta_type_can_properties.h:103
static constexpr const char *const CanChannelNumber
Definition stream_meta_type_can_properties.h:95
static constexpr const char *const CanDatabaseName
Definition stream_meta_type_can_properties.h:99