ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
stream_meta_type_raw_ethernet_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 someip
38 {
42 namespace brake
43 {
44 
45 constexpr char ADTF_MEDIA_DESC_ETHERNET_DDL[] =
46 R"(<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
47 <adtf:ddl xmlns:adtf="adtf">
48  <structs>
49  <struct name="tEthernetSampleHeader" version="1" ddlversion="4.0">
50  <element name="tmTimestampBeginNs" type="tInt64" arraysize="1">
51  <deserialized alignment="1"/>
52  <serialized bytepos="0" byteorder="LE"/>
53  </element>
54  <element name="tmTimestampEndNs" type="tInt64" arraysize="1">
55  <deserialized alignment="1"/>
56  <serialized bytepos="8" byteorder="LE"/>
57  </element>
58  <element name="nErrorCode" type="tInt32" arraysize="1">
59  <deserialized alignment="1"/>
60  <serialized bytepos="16" byteorder="LE"/>
61  </element>
62  <element name="nFrameCheckSequence" type="tUInt32" arraysize="1">
63  <deserialized alignment="1"/>
64  <serialized bytepos="20" byteorder="LE"/>
65  </element>
66  <element name="nFrameSize" type="tUInt32" arraysize="1">
67  <deserialized alignment="1"/>
68  <serialized bytepos="24" byteorder="LE"/>
69  </element>
70  <element name="aFrameData" type="tUInt8" arraysize="nFrameSize">
71  <deserialized alignment="1"/>
72  <serialized bytepos="28" byteorder="LE"/>
73  </element>
74  </struct>
75  </structs>
76 </adtf:ddl>)";
77 
84 {
85  static constexpr const char* const MetaTypeName = "adtf/devicetb/ethernet";
86 
87  /*
88  * The name of the structure that is contained within the samples.
89  */
90  static constexpr const char* const DDLStructureName = "tEthernetSampleHeader";
91 
92  /*
93  * Wether the samples contain the serialized or deserialized representation.
94  */
95  static constexpr const bool DDLSerialized = true;
96 
97  /*
98  * The DDL defintion of the structure that is contained within the samples.
99  */
100  static constexpr const char* const DDLDefinitions = ADTF_MEDIA_DESC_ETHERNET_DDL;
101 };
102 
103 }
106 }
107 }
108 }
109 }
brake::stream_meta_type_ethernet_properties stream_meta_type_ethernet_properties
Definition of Stream Meta Type for ethernet samples.
ADTF - Namespace.