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
16 namespace Vector {
17 namespace 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::codingErrors
uint16_t codingErrors
Definition A429BusStatistic.h:74
Vector::BLF::A429BusStatistic::write
void write(AbstractFile &os) override
Definition A429BusStatistic.cpp:36
Vector::BLF::A429BusStatistic::wordLenErrors
uint16_t wordLenErrors
Definition A429BusStatistic.h:71
Vector::BLF::A429BusStatistic::dataTotal
uint32_t dataTotal
Definition A429BusStatistic.h:44
Vector::BLF::A429BusStatistic::labelCount
std::array< uint16_t, 256 > labelCount
Definition A429BusStatistic.h:83
Vector::BLF::A429BusStatistic::channel
uint16_t channel
Definition A429BusStatistic.h:32
Vector::BLF::A429BusStatistic::bitrateErrors
uint16_t bitrateErrors
Definition A429BusStatistic.h:56
Vector::BLF::A429BusStatistic::levelErrors
uint16_t levelErrors
Definition A429BusStatistic.h:80
Vector::BLF::A429BusStatistic::dir
uint8_t dir
Definition A429BusStatistic.h:35
Vector::BLF::A429BusStatistic::read
void read(AbstractFile &is) override
Definition A429BusStatistic.cpp:14
Vector::BLF::A429BusStatistic::dutyFactorErrors
uint16_t dutyFactorErrors
Definition A429BusStatistic.h:68
Vector::BLF::A429BusStatistic::parityErrors
uint16_t parityErrors
Definition A429BusStatistic.h:53
Vector::BLF::A429BusStatistic::formatErrors
uint16_t formatErrors
Definition A429BusStatistic.h:65
Vector::BLF::A429BusStatistic::idleErrors
uint16_t idleErrors
Definition A429BusStatistic.h:77
Vector::BLF::A429BusStatistic::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition A429BusStatistic.cpp:58
Vector::BLF::A429BusStatistic::bitrate
uint32_t bitrate
Definition A429BusStatistic.h:50
Vector::BLF::A429BusStatistic::reservedA429BusStatistic
uint8_t reservedA429BusStatistic
Definition A429BusStatistic.h:38
Vector::BLF::A429BusStatistic::lineErrors
uint16_t lineErrors
Definition A429BusStatistic.h:62
Vector::BLF::A429BusStatistic::gapErrors
uint16_t gapErrors
Definition A429BusStatistic.h:59
Vector::BLF::A429BusStatistic::errorTotal
uint32_t errorTotal
Definition A429BusStatistic.h:47
Vector::BLF::A429BusStatistic::busload
uint32_t busload
Definition A429BusStatistic.h:41
Vector::BLF::AbstractFile
Definition AbstractFile.h:19