Vector BLF: AfdxBusStatistic.h Source File

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
14namespace Vector {
15namespace 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
AFDX_BUS_STATISTIC.
Definition: AfdxBusStatistic.h:22
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22