Vector BLF: LinShortOrSlowResponse2.h Source File

Vector BLF

Loading...
Searching...
No Matches
LinShortOrSlowResponse2.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
23 struct VECTOR_BLF_EXPORT LinShortOrSlowResponse2 final : ObjectHeader, LinDatabyteTimestampEvent {
24 LinShortOrSlowResponse2();
25
26 void read(AbstractFile & is) override;
27 void write(AbstractFile & os) override;
28 uint32_t calculateObjectSize() const override;
29
35 uint32_t numberOfRespBytes {};
36
43 std::array<uint8_t, 9> respBytes {};
44
51 uint8_t slowResponse {};
52
60 uint8_t interruptedByBreak {};
61
63 uint8_t reservedLinShortOrSlowResponse1 {};
64
71 double exactHeaderBaudrate {};
72
80 uint32_t earlyStopbitOffset {};
81
83 uint32_t reservedLinShortOrSlowResponse2 {};
84};
85
86}
87}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinDatabyteTimestampEvent
Definition LinDatabyteTimestampEvent.h:23
Vector::BLF::LinShortOrSlowResponse2::write
void write(AbstractFile &os) override
Definition LinShortOrSlowResponse2.cpp:27
Vector::BLF::LinShortOrSlowResponse2::interruptedByBreak
uint8_t interruptedByBreak
non-zero, if the response was interrupted by a sync break
Definition LinShortOrSlowResponse2.h:60
Vector::BLF::LinShortOrSlowResponse2::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinShortOrSlowResponse2.cpp:40
Vector::BLF::LinShortOrSlowResponse2::read
void read(AbstractFile &is) override
Definition LinShortOrSlowResponse2.cpp:14
Vector::BLF::LinShortOrSlowResponse2::numberOfRespBytes
uint32_t numberOfRespBytes
number of valid response bytes
Definition LinShortOrSlowResponse2.h:35
Vector::BLF::LinShortOrSlowResponse2::slowResponse
uint8_t slowResponse
non-zero, if the response was too slow
Definition LinShortOrSlowResponse2.h:51
Vector::BLF::LinShortOrSlowResponse2::reservedLinShortOrSlowResponse2
uint32_t reservedLinShortOrSlowResponse2
Definition LinShortOrSlowResponse2.h:83
Vector::BLF::LinShortOrSlowResponse2::earlyStopbitOffset
uint32_t earlyStopbitOffset
Early stop bit offset for UART timestamps in ns.
Definition LinShortOrSlowResponse2.h:80
Vector::BLF::LinShortOrSlowResponse2::respBytes
std::array< uint8_t, 9 > respBytes
the response bytes (can include the checksum)
Definition LinShortOrSlowResponse2.h:43
Vector::BLF::LinShortOrSlowResponse2::exactHeaderBaudrate
double exactHeaderBaudrate
Exact baudrate of the header in bit/sec.
Definition LinShortOrSlowResponse2.h:71
Vector::BLF::LinShortOrSlowResponse2::reservedLinShortOrSlowResponse1
uint8_t reservedLinShortOrSlowResponse1
Definition LinShortOrSlowResponse2.h:63