Vector BLF: CanFdExtFrameData.h Source File

Vector BLF

Loading...
Searching...
No Matches
CanFdExtFrameData.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/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
20 struct VECTOR_BLF_EXPORT CanFdExtFrameData {
21 CanFdExtFrameData() = default;
22 virtual ~CanFdExtFrameData() noexcept = default;
23 CanFdExtFrameData(const CanFdExtFrameData &) = default;
24 CanFdExtFrameData & operator=(const CanFdExtFrameData &) = default;
25 CanFdExtFrameData(CanFdExtFrameData &&) = default;
26 CanFdExtFrameData & operator=(CanFdExtFrameData &&) = default;
27
29 virtual void read(AbstractFile & is);
30
32 virtual void write(AbstractFile & os);
33
35 virtual uint32_t calculateObjectSize() const;
36
48 uint32_t btrExtArb {};
49
61 uint32_t btrExtData {};
62
64 std::vector<uint8_t> reservedCanFdExtFrameData {};
65
66 // @note might be extended in future versions
67};
68
69}
70}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::CanFdExtFrameData::btrExtArb
uint32_t btrExtArb
Definition CanFdExtFrameData.h:48
Vector::BLF::CanFdExtFrameData::write
virtual void write(AbstractFile &os)
Definition CanFdExtFrameData.cpp:16
Vector::BLF::CanFdExtFrameData::read
virtual void read(AbstractFile &is)
Definition CanFdExtFrameData.cpp:10
Vector::BLF::CanFdExtFrameData::reservedCanFdExtFrameData
std::vector< uint8_t > reservedCanFdExtFrameData
Definition CanFdExtFrameData.h:64
Vector::BLF::CanFdExtFrameData::btrExtData
uint32_t btrExtData
Definition CanFdExtFrameData.h:61
Vector::BLF::CanFdExtFrameData::calculateObjectSize
virtual uint32_t calculateObjectSize() const
Definition CanFdExtFrameData.cpp:22