Vector BLF: EthernetErrorEx.h Source File

Vector BLF

Loading...
Searching...
No Matches
EthernetErrorEx.h
1// SPDX-FileCopyrightText: 2013-2021 Tobias Lorenz <tobias.lorenz@gmx.net>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7#include <Vector/BLF/platform.h>
8
9#include <vector>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
22 struct VECTOR_BLF_EXPORT EthernetErrorEx final : ObjectHeader {
23 EthernetErrorEx();
24
25 void read(AbstractFile & is) override;
26 void write(AbstractFile & os) override;
27 uint32_t calculateObjectSize() const override;
28
34 virtual uint16_t calculateStructLength() const;
35
43 uint16_t structLength {};
44
53 uint16_t flags {};
54
58 uint16_t channel {};
59
63 uint16_t hardwareChannel {};
64
68 uint64_t frameDuration {};
69
73 uint32_t frameChecksum {};
74
78 uint16_t dir {};
79
83 uint16_t frameLength {};
84
88 uint32_t frameHandle {};
89
98 uint32_t error {};
99
103 std::vector<uint8_t> frameData {};
104};
105
106}
107}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::EthernetErrorEx
ETHERNET_ERROR_EX.
Definition: EthernetErrorEx.h:22
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22