Vector BLF

Loading...
Searching...
No Matches
LinReceiveError2.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/LinDatabyteTimestampEvent.h>
13#include <Vector/BLF/ObjectHeader.h>
14
15#include <Vector/BLF/vector_blf_export.h>
16
17 namespace Vector {
18 namespace BLF {
19
38 struct VECTOR_BLF_EXPORT LinReceiveError2 final : ObjectHeader, LinDatabyteTimestampEvent {
39 LinReceiveError2();
40
41 void read(AbstractFile & is) override;
42 void write(AbstractFile & os) override;
43 uint32_t calculateObjectSize() const override;
44
48 std::array<uint8_t, 8> data {};
49
55 uint8_t fsmId {};
56
62 uint8_t fsmState {};
63
107 uint8_t stateReason {};
108
115 uint8_t offendingByte {};
116
126 uint8_t shortError {};
127
137 uint8_t timeoutDuringDlcDetection {};
138
148 uint8_t isEtf {};
149
155 uint8_t hasDatabytes {};
156
157 /* the following variables are only available in Version 2 and above */
158
166 uint32_t respBaudrate {};
167
169 uint32_t reservedLinReceiveError {};
170
171 /* the following variables are only available in Version 3 and above */
172
180 double exactHeaderBaudrate {};
181
189 uint32_t earlyStopbitOffset {};
190
198 uint32_t earlyStopbitOffsetResponse {};
199};
200
201}
202}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinDatabyteTimestampEvent
Definition LinDatabyteTimestampEvent.h:23
Vector::BLF::LinReceiveError2::offendingByte
uint8_t offendingByte
Definition LinReceiveError2.h:115
Vector::BLF::LinReceiveError2::write
void write(AbstractFile &os) override
Definition LinReceiveError2.cpp:34
Vector::BLF::LinReceiveError2::reservedLinReceiveError
uint32_t reservedLinReceiveError
Definition LinReceiveError2.h:169
Vector::BLF::LinReceiveError2::fsmId
uint8_t fsmId
Definition LinReceiveError2.h:55
Vector::BLF::LinReceiveError2::respBaudrate
uint32_t respBaudrate
Response baudrate of the event in bit/sec.
Definition LinReceiveError2.h:166
Vector::BLF::LinReceiveError2::earlyStopbitOffset
uint32_t earlyStopbitOffset
Early stop bit offset for UART timestamps in ns.
Definition LinReceiveError2.h:189
Vector::BLF::LinReceiveError2::timeoutDuringDlcDetection
uint8_t timeoutDuringDlcDetection
Definition LinReceiveError2.h:137
Vector::BLF::LinReceiveError2::exactHeaderBaudrate
double exactHeaderBaudrate
Exact baudrate of the header in bit/sec.
Definition LinReceiveError2.h:180
Vector::BLF::LinReceiveError2::isEtf
uint8_t isEtf
ETF collision flag.
Definition LinReceiveError2.h:148
Vector::BLF::LinReceiveError2::stateReason
uint8_t stateReason
Definition LinReceiveError2.h:107
Vector::BLF::LinReceiveError2::fsmState
uint8_t fsmState
Definition LinReceiveError2.h:62
Vector::BLF::LinReceiveError2::read
void read(AbstractFile &is) override
Definition LinReceiveError2.cpp:14
Vector::BLF::LinReceiveError2::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinReceiveError2.cpp:53
Vector::BLF::LinReceiveError2::shortError
uint8_t shortError
Definition LinReceiveError2.h:126
Vector::BLF::LinReceiveError2::data
std::array< uint8_t, 8 > data
data bytes.
Definition LinReceiveError2.h:48
Vector::BLF::LinReceiveError2::hasDatabytes
uint8_t hasDatabytes
Definition LinReceiveError2.h:155
Vector::BLF::LinReceiveError2::earlyStopbitOffsetResponse
uint32_t earlyStopbitOffsetResponse
Early stop bit offset in frame response for UART timestamps in ns.
Definition LinReceiveError2.h:198