Vector BLF: LinCrcError.h Source File

Vector BLF

Loading...
Searching...
No Matches
LinCrcError.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/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
27 struct VECTOR_BLF_EXPORT LinCrcError final : ObjectHeader {
28 LinCrcError();
29
30 void read(AbstractFile & is) override;
31 void write(AbstractFile & os) override;
32 uint32_t calculateObjectSize() const override;
33
39 uint16_t channel {};
40
46 uint8_t id {};
47
53 uint8_t dlc {};
54
58 std::array<uint8_t, 8> data {};
59
64 uint8_t fsmId {};
65
70 uint8_t fsmState {};
71
75 uint8_t headerTime {};
76
80 uint8_t fullTime {};
81
85 uint16_t crc {};
86
95 uint8_t dir {};
96
98 uint8_t reservedLinCrcError1 {};
99
101 uint32_t reservedLinCrcError2 {};
102};
103
104}
105}
Vector::BLF::ObjectQueue
Definition ObjectQueue.h:26
Vector::BLF::ObjectQueue::read
T * read()
Definition ObjectQueue.cpp:25
Vector::BLF::ObjectQueue::write
void write(T *obj)
Definition ObjectQueue.cpp:67
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinCrcError
LIN_CRC_ERROR.
Definition LinCrcError.h:27
Vector::BLF::ObjectHeader
Object header.
Definition ObjectHeader.h:22