ADTF Device Toolbox SDK
Loading...
Searching...
No Matches
stream_meta_type_canfd_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 canfd
38{
42namespace 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
85struct stream_meta_type_canfd_properties
86{
87 stream_meta_type_canfd_properties() = default;
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
Namespace for functionality provided by V3.0.0.
Definition canfd_coder_intf.h:44
Namespace for CAN FD in ADTF-Devicetoolbox.
Definition canfd_coder_intf.h:38
axle::stream_meta_type_canfd_properties stream_meta_type_canfd_properties
Definition stream_meta_type_canfd_properties.h:122
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_CANFDDATA_NAME
Definition stream_meta_type_canfd_properties.h:47
Definition stream_meta_type_canfd_properties.h:86
static constexpr const char *const CanFdNetworkName
Definition stream_meta_type_canfd_properties.h:102
static constexpr const char *const CanFdChannelNumber
Definition stream_meta_type_canfd_properties.h:94
static constexpr const char *const CanFdDatabaseName
Definition stream_meta_type_canfd_properties.h:98