ADTF Device Toolbox SDK
Loading...
Searching...
No Matches
raw_ethernet_types.h
Go to the documentation of this file.
1
16
17#pragma once
18
19#include <stdint.h>
20
24namespace adtf
25{
29namespace devicetb
30{
34namespace sdk
35{
39namespace someip
40{
44namespace 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
70inline 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
80inline bool operator==(const tEthernetSampleHeader& lhs, const tEthernetSampleHeader& rhs)
81{
82 return !(lhs != rhs);
83}
84
85}
86
88}
89}
90}
91}
Namespace for functionality provided by V3.1.0.
Definition raw_ethernet_types.h:45
Namespace for SOME/IP in ADTF-Devicetoolbox.
Definition raw_ethernet_types.h:40
bool operator==(const tSomeIpSampleHeader &lhs, const tSomeIpSampleHeader &rhs)
Definition someip_types.h:653
brake::tEthernetSampleHeader tEthernetSampleHeader
Definition raw_ethernet_types.h:87
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