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
17 namespace Vector {
18 namespace 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::timeOffsetBrsNs
uint32_t timeOffsetBrsNs
time offset of brs field
Definition CanFdErrorFrame64.h:149
Vector::BLF::CanFdErrorFrame64::timeOffsetCrcDelNs
uint32_t timeOffsetCrcDelNs
time offset of brs field
Definition CanFdErrorFrame64.h:157
Vector::BLF::CanFdErrorFrame64::channel
uint8_t channel
application channel
Definition CanFdErrorFrame64.h:39
Vector::BLF::CanFdErrorFrame64::extDataOffset
uint8_t extDataOffset
Definition CanFdErrorFrame64.h:97
Vector::BLF::CanFdErrorFrame64::errorCodeExt
uint16_t errorCodeExt
Definition CanFdErrorFrame64.h:72
Vector::BLF::CanFdErrorFrame64::crc
uint32_t crc
Definition CanFdErrorFrame64.h:162
Vector::BLF::CanFdErrorFrame64::errorPosition
uint16_t errorPosition
error position as bit offset
Definition CanFdErrorFrame64.h:170
Vector::BLF::CanFdErrorFrame64::reservedCanFdErrorFrame1
uint8_t reservedCanFdErrorFrame1
Definition CanFdErrorFrame64.h:100
Vector::BLF::CanFdErrorFrame64::write
void write(AbstractFile &os) override
Definition CanFdErrorFrame64.cpp:43
Vector::BLF::CanFdErrorFrame64::reservedCanFdErrorFrame64
std::vector< uint8_t > reservedCanFdErrorFrame64
Definition CanFdErrorFrame64.h:190
Vector::BLF::CanFdErrorFrame64::data
std::vector< uint8_t > data
CAN FD data.
Definition CanFdErrorFrame64.h:183
Vector::BLF::CanFdErrorFrame64::validDataBytes
uint8_t validDataBytes
Valid payload length of data.
Definition CanFdErrorFrame64.h:53
Vector::BLF::CanFdErrorFrame64::btrCfgData
uint32_t btrCfgData
bit rate used in data phase
Definition CanFdErrorFrame64.h:141
Vector::BLF::CanFdErrorFrame64::extFlags
uint16_t extFlags
FD specific flags.
Definition CanFdErrorFrame64.h:94
Vector::BLF::CanFdErrorFrame64::btrCfgArb
uint32_t btrCfgArb
bit rate used in arbitration phase
Definition CanFdErrorFrame64.h:132
Vector::BLF::CanFdErrorFrame64::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition CanFdErrorFrame64.cpp:77
Vector::BLF::CanFdErrorFrame64::read
void read(AbstractFile &is) override
Definition CanFdErrorFrame64.cpp:14
Vector::BLF::CanFdErrorFrame64::ecc
uint8_t ecc
Definition CanFdErrorFrame64.h:60
Vector::BLF::CanFdErrorFrame64::reservedCanFdErrorFrame2
uint16_t reservedCanFdErrorFrame2
Definition CanFdErrorFrame64.h:173
Vector::BLF::CanFdErrorFrame64::dlc
uint8_t dlc
CAN dlc.
Definition CanFdErrorFrame64.h:46
Vector::BLF::CanFdErrorFrame64::flags
uint16_t flags
Definition CanFdErrorFrame64.h:66
Vector::BLF::CanFdErrorFrame64::frameLength
uint32_t frameLength
message length in ns
Definition CanFdErrorFrame64.h:118