Vector BLF: CanFdErrorFrame64.h Source File

Vector BLF

Loading...
Searching...
No Matches
CanFdErrorFrame64.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>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/CanFdExtFrameData.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 CanFdErrorFrame64 final : ObjectHeader, CanFdExtFrameData {
26 CanFdErrorFrame64();
27
28 void read(AbstractFile & is) override;
29 void write(AbstractFile & os) override;
30 uint32_t calculateObjectSize() const override;
31
32 virtual bool hasExtData() const;
33
39 uint8_t channel {};
40
46 uint8_t dlc {};
47
53 uint8_t validDataBytes {};
54
60 uint8_t ecc {};
61
66 uint16_t flags {};
67
72 uint16_t errorCodeExt {};
73
94 uint16_t extFlags {};
95
97 uint8_t extDataOffset {};
98
100 uint8_t reservedCanFdErrorFrame1 {};
101
107 uint32_t id {};
108
118 uint32_t frameLength {};
119
132 uint32_t btrCfgArb {};
133
141 uint32_t btrCfgData {};
142
149 uint32_t timeOffsetBrsNs {};
150
157 uint32_t timeOffsetCrcDelNs {};
158
162 uint32_t crc {};
163
170 uint16_t errorPosition {};
171
173 uint16_t reservedCanFdErrorFrame2 {};
174
183 std::vector<uint8_t> data {};
184
190 std::vector<uint8_t> reservedCanFdErrorFrame64 {};
191};
192
193}
194}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::CanFdErrorFrame64
CAN_FD_ERROR_64.
Definition: CanFdErrorFrame64.h:25
Vector::BLF::CanFdExtFrameData
Definition: CanFdExtFrameData.h:20
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22