Vector BLF: EthernetErrorForwarded.h Source File

Vector BLF

Loading...
Searching...
No Matches
EthernetErrorForwarded.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
24 struct VECTOR_BLF_EXPORT EthernetErrorForwarded final : ObjectHeader {
25 EthernetErrorForwarded();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
36 virtual uint16_t calculateStructLength() const;
37
45 uint16_t structLength {};
46
55 uint16_t flags {};
56
60 uint16_t channel {};
61
65 uint16_t hardwareChannel {};
66
70 uint64_t frameDuration {};
71
75 uint32_t frameChecksum {};
76
80 uint16_t dir {};
81
85 uint16_t frameLength {};
86
90 uint32_t frameHandle {};
91
100 uint32_t error {};
101
105 std::vector<uint8_t> frameData {};
106};
107
108}
109}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::EthernetErrorForwarded
ETHERNET_ERROR_FORWARDED.
Definition: EthernetErrorForwarded.h:24
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22