ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
raw_ethernet_types.h
Go to the documentation of this file.
1 
17 #pragma once
18 
19 #include <stdint.h>
20 
24 namespace adtf
25 {
29 namespace devicetb
30 {
34 namespace sdk
35 {
39 namespace someip
40 {
44 namespace brake
45 {
46 #ifdef WIN32
47 #pragma warning(disable:4200)
48 #endif
49 #pragma pack(push, 1)
56 {
57  int64_t tmTimestampBeginNs = 0;
58  int64_t tmTimestampEndNs = 0;
59  int32_t nErrorCode = 0;
60  uint32_t nFrameCheckSequence = 0;
61  uint32_t nFrameSize = 0;
62  uint8_t aFrameData[0];
63 };
64 #pragma pack(pop)
65 #ifdef WIN32
66 #pragma warning(default:4200)
67 #endif
68 
69 
70 inline bool operator!=(const tEthernetSampleHeader& lhs, const tEthernetSampleHeader& rhs)
71 {
72  return
73  lhs.tmTimestampBeginNs != rhs.tmTimestampBeginNs ||
74  lhs.tmTimestampEndNs != rhs.tmTimestampEndNs ||
75  lhs.nErrorCode != rhs.nErrorCode ||
76  lhs.nFrameCheckSequence != rhs.nFrameCheckSequence ||
77  lhs.nFrameSize != rhs.nFrameSize;
78 }
79 
80 inline bool operator==(const tEthernetSampleHeader& lhs, const tEthernetSampleHeader& rhs)
81 {
82  return !(lhs != rhs);
83 }
84 
85 }
88 }
89 }
90 }
91 }
brake::tEthernetSampleHeader tEthernetSampleHeader
This struct describes the Ethernet sample header which is placed in the beginning of every Ethernet s...
ADTF - Namespace.
This struct describes the Ethernet sample header which is placed in the beginning of every Ethernet s...