Vector BLF

Loading...
Searching...
No Matches
CanFdMessage64.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 CanFdMessage64 final : ObjectHeader, CanFdExtFrameData {
26 CanFdMessage64();
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
55 uint8_t dlc {};
56
63 uint8_t validDataBytes {};
64
72 uint8_t txCount {};
73
79 uint32_t id {};
80
88 uint32_t frameLength {};
89
113 uint32_t flags {};
114
127 uint32_t btrCfgArb {};
128
136 uint32_t btrCfgData {};
137
144 uint32_t timeOffsetBrsNs {};
145
152 uint32_t timeOffsetCrcDelNs {};
153
159 uint16_t bitCount {};
160
164 uint8_t dir {};
165
167 uint8_t extDataOffset {};
168
172 uint32_t crc {};
173
181 std::vector<uint8_t> data {};
182};
183
184}
185}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::CanFdMessage64::channel
uint8_t channel
application channel
Definition CanFdMessage64.h:39
Vector::BLF::CanFdMessage64::flags
uint32_t flags
flags
Definition CanFdMessage64.h:113
Vector::BLF::CanFdMessage64::dir
uint8_t dir
Definition CanFdMessage64.h:164
Vector::BLF::CanFdMessage64::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition CanFdMessage64.cpp:72
Vector::BLF::CanFdMessage64::data
std::vector< uint8_t > data
CAN FD data.
Definition CanFdMessage64.h:181
Vector::BLF::CanFdMessage64::bitCount
uint16_t bitCount
complete message length in bits
Definition CanFdMessage64.h:159
Vector::BLF::CanFdMessage64::txCount
uint8_t txCount
txRequiredCount (4 bits), txReqCount (4 Bits)
Definition CanFdMessage64.h:72
Vector::BLF::CanFdMessage64::timeOffsetCrcDelNs
uint32_t timeOffsetCrcDelNs
time offset of crc delimiter field
Definition CanFdMessage64.h:152
Vector::BLF::CanFdMessage64::timeOffsetBrsNs
uint32_t timeOffsetBrsNs
time offset of brs field
Definition CanFdMessage64.h:144
Vector::BLF::CanFdMessage64::btrCfgData
uint32_t btrCfgData
bit rate used in data phase
Definition CanFdMessage64.h:136
Vector::BLF::CanFdMessage64::validDataBytes
uint8_t validDataBytes
Valid payload length of data.
Definition CanFdMessage64.h:63
Vector::BLF::CanFdMessage64::write
void write(AbstractFile &os) override
Definition CanFdMessage64.cpp:41
Vector::BLF::CanFdMessage64::btrCfgArb
uint32_t btrCfgArb
bit rate used in arbitration phase
Definition CanFdMessage64.h:127
Vector::BLF::CanFdMessage64::read
void read(AbstractFile &is) override
Definition CanFdMessage64.cpp:15
Vector::BLF::CanFdMessage64::extDataOffset
uint8_t extDataOffset
Definition CanFdMessage64.h:167
Vector::BLF::CanFdMessage64::dlc
uint8_t dlc
CAN dlc.
Definition CanFdMessage64.h:55
Vector::BLF::CanFdMessage64::frameLength
uint32_t frameLength
message length in ns
Definition CanFdMessage64.h:88
Vector::BLF::CanFdMessage64::crc
uint32_t crc
CRC for CAN.
Definition CanFdMessage64.h:172