Vector BLF

Loading...
Searching...
No Matches
LinCrcError2.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
26 struct VECTOR_BLF_EXPORT LinCrcError2 final : ObjectHeader, LinDatabyteTimestampEvent {
27 LinCrcError2();
28
29 void read(AbstractFile & is) override;
30 void write(AbstractFile & os) override;
31 uint32_t calculateObjectSize() const override;
32
38 std::array<uint8_t, 8> data {};
39
45 uint16_t crc {};
46
55 uint8_t dir {};
56
61 uint8_t fsmId {};
62
67 uint8_t fsmState {};
68
77 uint8_t simulated {};
78
80 uint16_t reservedLinCrcError1 {};
81
82 /* the following variables are only available in Version 2 and above */
83
90 uint32_t respBaudrate {};
91
93 uint32_t reservedLinCrcError2 {};
94
95 /* the following variables are only available in Version 3 and above */
96
104 double exactHeaderBaudrate {};
105
113 uint32_t earlyStopbitOffset {};
114
122 uint32_t earlyStopbitOffsetResponse {};
123};
124
125}
126}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinCrcError2::fsmState
uint8_t fsmState
Definition LinCrcError2.h:67
Vector::BLF::LinCrcError2::earlyStopbitOffset
uint32_t earlyStopbitOffset
Early stop bit offset for UART timestamps in ns.
Definition LinCrcError2.h:113
Vector::BLF::LinCrcError2::respBaudrate
uint32_t respBaudrate
Response baudrate of the event in bit/sec.
Definition LinCrcError2.h:90
Vector::BLF::LinCrcError2::fsmId
uint8_t fsmId
Definition LinCrcError2.h:61
Vector::BLF::LinCrcError2::data
std::array< uint8_t, 8 > data
data bytes.
Definition LinCrcError2.h:38
Vector::BLF::LinCrcError2::write
void write(AbstractFile &os) override
Definition LinCrcError2.cpp:32
Vector::BLF::LinCrcError2::crc
uint16_t crc
checksum byte
Definition LinCrcError2.h:45
Vector::BLF::LinCrcError2::read
void read(AbstractFile &is) override
Definition LinCrcError2.cpp:14
Vector::BLF::LinCrcError2::dir
uint8_t dir
direction
Definition LinCrcError2.h:55
Vector::BLF::LinCrcError2::reservedLinCrcError2
uint32_t reservedLinCrcError2
Definition LinCrcError2.h:93
Vector::BLF::LinCrcError2::earlyStopbitOffsetResponse
uint32_t earlyStopbitOffsetResponse
Early stop bit offset in frame response for UART timestamps in ns.
Definition LinCrcError2.h:122
Vector::BLF::LinCrcError2::reservedLinCrcError1
uint16_t reservedLinCrcError1
Definition LinCrcError2.h:80
Vector::BLF::LinCrcError2::simulated
uint8_t simulated
simulated frame
Definition LinCrcError2.h:77
Vector::BLF::LinCrcError2::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinCrcError2.cpp:49
Vector::BLF::LinCrcError2::exactHeaderBaudrate
double exactHeaderBaudrate
Exact baudrate of the header in bit/sec.
Definition LinCrcError2.h:104
Vector::BLF::LinDatabyteTimestampEvent
Definition LinDatabyteTimestampEvent.h:23