Vector BLF

Loading...
Searching...
No Matches
AfdxBusStatistic.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 AfdxBusStatistic final : ObjectHeader {
23 AfdxBusStatistic();
24
25 void read(AbstractFile & is) override;
26 void write(AbstractFile & os) override;
27 uint32_t calculateObjectSize() const override;
28
32 uint16_t channel {};
33
37 uint16_t flags {};
38
42 uint32_t statDuration {};
43
44 /* bus-specific info */
45
49 uint32_t statRxPacketCountHW {};
50
54 uint32_t statTxPacketCountHW {};
55
59 uint32_t statRxErrorCountHW {};
60
64 uint32_t statTxErrorCountHW {};
65
69 uint32_t statRxBytesHW {};
70
74 uint32_t statTxBytesHW {};
75
76 /* CANwin specific info */
77
81 uint32_t statRxPacketCount {};
82
86 uint32_t statTxPacketCount {};
87
91 uint32_t statDroppedPacketCount {};
92
96 uint32_t statInvalidPacketCount {};
97
101 uint32_t statLostPacketCount {};
102
103 /* connection related info */
104
108 uint8_t line {};
109
113 uint8_t linkStatus {};
114
118 uint16_t linkSpeed {};
119
123 uint16_t linkLost {};
124
126 uint16_t reservedAfdxBusStatistic1 {};
127
129 uint32_t reservedAfdxBusStatistic2 {};
130};
131
132}
133}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::AfdxBusStatistic::linkLost
uint16_t linkLost
counter of link-losses during this period
Definition AfdxBusStatistic.h:123
Vector::BLF::AfdxBusStatistic::write
void write(AbstractFile &os) override
Definition AfdxBusStatistic.cpp:39
Vector::BLF::AfdxBusStatistic::statTxPacketCountHW
uint32_t statTxPacketCountHW
send frames as taken from hardware, i.e. on bus
Definition AfdxBusStatistic.h:54
Vector::BLF::AfdxBusStatistic::statRxPacketCountHW
uint32_t statRxPacketCountHW
read frames taken from hardware, i.e. on bus
Definition AfdxBusStatistic.h:49
Vector::BLF::AfdxBusStatistic::linkSpeed
uint16_t linkSpeed
link speed: 0:=10mbps 1:=100mbps 2:=1000mbps
Definition AfdxBusStatistic.h:118
Vector::BLF::AfdxBusStatistic::statInvalidPacketCount
uint32_t statInvalidPacketCount
number of packets with incompatible eth-header regarding AFDX-spec
Definition AfdxBusStatistic.h:96
Vector::BLF::AfdxBusStatistic::statDroppedPacketCount
uint32_t statDroppedPacketCount
number of packets aktively dropped by CANwin
Definition AfdxBusStatistic.h:91
Vector::BLF::AfdxBusStatistic::statTxPacketCount
uint32_t statTxPacketCount
send packets from within CANwin
Definition AfdxBusStatistic.h:86
Vector::BLF::AfdxBusStatistic::statLostPacketCount
uint32_t statLostPacketCount
number of packets lost by CABwin due to queue overflow etc
Definition AfdxBusStatistic.h:101
Vector::BLF::AfdxBusStatistic::channel
uint16_t channel
application channel
Definition AfdxBusStatistic.h:32
Vector::BLF::AfdxBusStatistic::statDuration
uint32_t statDuration
real time period in mysec of statistic datacollection
Definition AfdxBusStatistic.h:42
Vector::BLF::AfdxBusStatistic::line
uint8_t line
lineA (0) or lineB (1)
Definition AfdxBusStatistic.h:108
Vector::BLF::AfdxBusStatistic::flags
uint16_t flags
Bit0=Valid Rx/Tx Counter, Bit1=Valid Error Counter; Bit2=Valid VLId.
Definition AfdxBusStatistic.h:37
Vector::BLF::AfdxBusStatistic::statTxBytesHW
uint32_t statTxBytesHW
bytes sent by HW during this time period
Definition AfdxBusStatistic.h:74
Vector::BLF::AfdxBusStatistic::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition AfdxBusStatistic.cpp:63
Vector::BLF::AfdxBusStatistic::reservedAfdxBusStatistic2
uint32_t reservedAfdxBusStatistic2
Definition AfdxBusStatistic.h:129
Vector::BLF::AfdxBusStatistic::linkStatus
uint8_t linkStatus
status of adapter as per EthernetStatus
Definition AfdxBusStatistic.h:113
Vector::BLF::AfdxBusStatistic::statRxBytesHW
uint32_t statRxBytesHW
bytes received by HW during this time period
Definition AfdxBusStatistic.h:69
Vector::BLF::AfdxBusStatistic::reservedAfdxBusStatistic1
uint16_t reservedAfdxBusStatistic1
Definition AfdxBusStatistic.h:126
Vector::BLF::AfdxBusStatistic::read
void read(AbstractFile &is) override
Definition AfdxBusStatistic.cpp:14
Vector::BLF::AfdxBusStatistic::statRxPacketCount
uint32_t statRxPacketCount
received frames within CANwin
Definition AfdxBusStatistic.h:81
Vector::BLF::AfdxBusStatistic::statRxErrorCountHW
uint32_t statRxErrorCountHW
number of erronous Rx-frames detected by HW
Definition AfdxBusStatistic.h:59
Vector::BLF::AfdxBusStatistic::statTxErrorCountHW
uint32_t statTxErrorCountHW
number of erronous Tx-frames detected by HW
Definition AfdxBusStatistic.h:64