Vector BLF

Loading...
Searching...
No Matches
EthernetStatistic.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/BLF/AbstractFile.h>
10#include <Vector/BLF/ObjectHeader.h>
11
12#include <Vector/BLF/vector_blf_export.h>
13
14 namespace Vector {
15 namespace BLF {
16
22 struct VECTOR_BLF_EXPORT EthernetStatistic final : ObjectHeader {
23 EthernetStatistic();
24
25 void read(AbstractFile & is) override;
26 void write(AbstractFile & os) override;
27 uint32_t calculateObjectSize() const override;
28
30 uint16_t channel {};
31
33 uint16_t reservedEthernetStatistic1 {};
34
36 uint32_t reservedEthernetStatistic2 {};
37
39 uint64_t rcvOk_HW {};
40
42 uint64_t xmitOk_HW {};
43
45 uint64_t rcvError_HW {};
46
48 uint64_t xmitError_HW {};
49
51 uint64_t rcvBytes_HW {};
52
54 uint64_t xmitBytes_HW {};
55
57 uint64_t rcvNoBuffer_HW {};
58
60 int16_t sqi {};
61
63 uint16_t hardwareChannel {};
64
66 uint32_t reservedEthernetStatistic3 {};
67};
68
69}
70}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::EthernetStatistic::reservedEthernetStatistic3
uint32_t reservedEthernetStatistic3
Definition EthernetStatistic.h:66
Vector::BLF::EthernetStatistic::rcvNoBuffer_HW
uint64_t rcvNoBuffer_HW
Definition EthernetStatistic.h:57
Vector::BLF::EthernetStatistic::reservedEthernetStatistic2
uint32_t reservedEthernetStatistic2
Definition EthernetStatistic.h:36
Vector::BLF::EthernetStatistic::channel
uint16_t channel
Definition EthernetStatistic.h:30
Vector::BLF::EthernetStatistic::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition EthernetStatistic.cpp:48
Vector::BLF::EthernetStatistic::xmitError_HW
uint64_t xmitError_HW
Definition EthernetStatistic.h:48
Vector::BLF::EthernetStatistic::write
void write(AbstractFile &os) override
Definition EthernetStatistic.cpp:31
Vector::BLF::EthernetStatistic::xmitBytes_HW
uint64_t xmitBytes_HW
Definition EthernetStatistic.h:54
Vector::BLF::EthernetStatistic::xmitOk_HW
uint64_t xmitOk_HW
Definition EthernetStatistic.h:42
Vector::BLF::EthernetStatistic::sqi
int16_t sqi
Definition EthernetStatistic.h:60
Vector::BLF::EthernetStatistic::reservedEthernetStatistic1
uint16_t reservedEthernetStatistic1
Definition EthernetStatistic.h:33
Vector::BLF::EthernetStatistic::hardwareChannel
uint16_t hardwareChannel
Definition EthernetStatistic.h:63
Vector::BLF::EthernetStatistic::rcvBytes_HW
uint64_t rcvBytes_HW
Definition EthernetStatistic.h:51
Vector::BLF::EthernetStatistic::read
void read(AbstractFile &is) override
Definition EthernetStatistic.cpp:14
Vector::BLF::EthernetStatistic::rcvOk_HW
uint64_t rcvOk_HW
Definition EthernetStatistic.h:39
Vector::BLF::EthernetStatistic::rcvError_HW
uint64_t rcvError_HW
Definition EthernetStatistic.h:45