Vector BLF: A429BusStatistic.h Source File

Vector BLF

Loading...
Searching...
No Matches
A429BusStatistic.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 <array>
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 A429BusStatistic final : ObjectHeader {
25 A429BusStatistic();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
32 uint16_t channel {};
33
35 uint8_t dir {};
36
38 uint8_t reservedA429BusStatistic {};
39
41 uint32_t busload {};
42
44 uint32_t dataTotal {};
45
47 uint32_t errorTotal {};
48
50 uint32_t bitrate {};
51
53 uint16_t parityErrors {};
54
56 uint16_t bitrateErrors {};
57
59 uint16_t gapErrors {};
60
62 uint16_t lineErrors {};
63
65 uint16_t formatErrors {};
66
68 uint16_t dutyFactorErrors {};
69
71 uint16_t wordLenErrors {};
72
74 uint16_t codingErrors {};
75
77 uint16_t idleErrors {};
78
80 uint16_t levelErrors {};
81
83 std::array<uint16_t, 256> labelCount {};
84};
85
86}
87}
Vector::BLF::A429BusStatistic
A429_BUS_STATISTIC.
Definition: A429BusStatistic.h:24
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22