Vector BLF: LinMessage2.h Source File

Vector BLF

Loading...
Searching...
No Matches
LinMessage2.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
17namespace Vector {
18namespace BLF {
19
25 struct VECTOR_BLF_EXPORT LinMessage2 final : ObjectHeader, LinDatabyteTimestampEvent {
26 LinMessage2();
27
28 void read(AbstractFile & is) override;
29 void write(AbstractFile & os) override;
30 uint32_t calculateObjectSize() const override;
31
37 std::array<uint8_t, 8> data {};
38
44 uint16_t crc {};
45
54 uint8_t dir {};
55
64 uint8_t simulated {};
65
74 uint8_t isEtf {};
75
83 uint8_t etfAssocIndex {};
84
92 uint8_t etfAssocEtfId {};
93
98 uint8_t fsmId {};
99
104 uint8_t fsmState {};
105
107 uint8_t reservedLinMessage1 {};
108
110 uint16_t reservedLinMessage2 {};
111
112 /* the following variables are only available in Version 2 and above */
113
121 uint32_t respBaudrate {};
122
123 /* the following variables are only available in Version 3 and above */
124
132 double exactHeaderBaudrate {};
133
141 uint32_t earlyStopbitOffset {};
142
150 uint32_t earlyStopbitOffsetResponse {};
151
152 /* internal variables */
153
159 uint8_t apiMajor {3};
160};
161
162}
163}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::LinDatabyteTimestampEvent
Definition: LinDatabyteTimestampEvent.h:23
Vector::BLF::LinMessage2
LIN_MESSAGE2.
Definition: LinMessage2.h:25
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22