Vector BLF

Loading...
Searching...
No Matches
LinSendError2.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/LinMessageDescriptor.h>
11#include <Vector/BLF/ObjectHeader.h>
12
13#include <Vector/BLF/vector_blf_export.h>
14
15 namespace Vector {
16 namespace BLF {
17
23 struct VECTOR_BLF_EXPORT LinSendError2 final : ObjectHeader, LinMessageDescriptor {
24 LinSendError2();
25
26 void read(AbstractFile & is) override;
27 void write(AbstractFile & os) override;
28 uint32_t calculateObjectSize() const override;
29
35 uint64_t eoh {};
36
45 uint8_t isEtf {};
46
51 uint8_t fsmId {};
52
57 uint8_t fsmState {};
58
60 uint8_t reservedLinSendError1 {};
61
62 /* the following variables are only available in Version 2 and above */
63
65 uint32_t reservedLinSendError2 {};
66
67 /* the following variables are only available in Version 3 and above */
68
75 double exactHeaderBaudrate {};
76
83 uint32_t earlyStopbitOffset {};
84
86 uint32_t reservedLinSendError3 {};
87};
88
89}
90}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinMessageDescriptor
Definition LinMessageDescriptor.h:21
Vector::BLF::LinSendError2::reservedLinSendError1
uint8_t reservedLinSendError1
Definition LinSendError2.h:60
Vector::BLF::LinSendError2::exactHeaderBaudrate
double exactHeaderBaudrate
Exact baudrate of the header in bit/sec.
Definition LinSendError2.h:75
Vector::BLF::LinSendError2::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinSendError2.cpp:43
Vector::BLF::LinSendError2::reservedLinSendError2
uint32_t reservedLinSendError2
Definition LinSendError2.h:65
Vector::BLF::LinSendError2::earlyStopbitOffset
uint32_t earlyStopbitOffset
Early stop bit offset for UART timestamps in ns.
Definition LinSendError2.h:83
Vector::BLF::LinSendError2::eoh
uint64_t eoh
EndOfHeader timestamp.
Definition LinSendError2.h:35
Vector::BLF::LinSendError2::isEtf
uint8_t isEtf
Event-triggered frame.
Definition LinSendError2.h:45
Vector::BLF::LinSendError2::fsmId
uint8_t fsmId
Definition LinSendError2.h:51
Vector::BLF::LinSendError2::read
void read(AbstractFile &is) override
Definition LinSendError2.cpp:14
Vector::BLF::LinSendError2::fsmState
uint8_t fsmState
Definition LinSendError2.h:57
Vector::BLF::LinSendError2::write
void write(AbstractFile &os) override
Definition LinSendError2.cpp:29
Vector::BLF::LinSendError2::reservedLinSendError3
uint32_t reservedLinSendError3
Definition LinSendError2.h:86