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
16 namespace Vector {
17 namespace 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::hardwareChannel
uint16_t hardwareChannel
HW channel.
Definition EthernetErrorForwarded.h:65
Vector::BLF::EthernetErrorForwarded::frameDuration
uint64_t frameDuration
Transmission duration in [ns].
Definition EthernetErrorForwarded.h:70
Vector::BLF::EthernetErrorForwarded::frameData
std::vector< uint8_t > frameData
Max 1612 data bytes per frame. Contains Ethernet header + Ethernet payload.
Definition EthernetErrorForwarded.h:105
Vector::BLF::EthernetErrorForwarded::error
uint32_t error
Definition EthernetErrorForwarded.h:100
Vector::BLF::EthernetErrorForwarded::dir
uint16_t dir
Direction flag: 0=Rx, 1=Tx, 2=TxRq.
Definition EthernetErrorForwarded.h:80
Vector::BLF::EthernetErrorForwarded::frameHandle
uint32_t frameHandle
Handle which refer the corresponding EthernetFrameForwarded event.
Definition EthernetErrorForwarded.h:90
Vector::BLF::EthernetErrorForwarded::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition EthernetErrorForwarded.cpp:49
Vector::BLF::EthernetErrorForwarded::frameChecksum
uint32_t frameChecksum
Ethernet checksum.
Definition EthernetErrorForwarded.h:75
Vector::BLF::EthernetErrorForwarded::flags
uint16_t flags
flags, which indicates the valid fields:
Definition EthernetErrorForwarded.h:55
Vector::BLF::EthernetErrorForwarded::read
void read(AbstractFile &is) override
Definition EthernetErrorForwarded.cpp:14
Vector::BLF::EthernetErrorForwarded::channel
uint16_t channel
application channel, i.e. Eth 1
Definition EthernetErrorForwarded.h:60
Vector::BLF::EthernetErrorForwarded::structLength
uint16_t structLength
Length of this structure.
Definition EthernetErrorForwarded.h:45
Vector::BLF::EthernetErrorForwarded::calculateStructLength
virtual uint16_t calculateStructLength() const
Definition EthernetErrorForwarded.cpp:65
Vector::BLF::EthernetErrorForwarded::write
void write(AbstractFile &os) override
Definition EthernetErrorForwarded.cpp:30
Vector::BLF::EthernetErrorForwarded::frameLength
uint16_t frameLength
Number of valid frameData bytes.
Definition EthernetErrorForwarded.h:85