Vector BLF: LinBusEvent.h Source File

Vector BLF

Loading...
Searching...
No Matches
LinBusEvent.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/BLF/AbstractFile.h>
10#include <Vector/BLF/ObjectHeader.h>
11
12#include <Vector/BLF/vector_blf_export.h>
13
14namespace Vector {
15namespace BLF {
16
20 struct VECTOR_BLF_EXPORT LinBusEvent {
21 LinBusEvent() = default;
22 virtual ~LinBusEvent() noexcept = default;
23 LinBusEvent(const LinBusEvent &) = default;
24 LinBusEvent & operator=(const LinBusEvent &) = default;
25 LinBusEvent(LinBusEvent &&) = default;
26 LinBusEvent & operator=(LinBusEvent &&) = default;
27
29 virtual void read(AbstractFile & is);
30
32 virtual void write(AbstractFile & os);
33
35 virtual uint32_t calculateObjectSize() const;
36
42 uint64_t sof {};
43
49 uint32_t eventBaudrate {};
50
56 uint16_t channel {};
57
59 uint16_t reservedLinBusEvent {};
60};
61
62}
63}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinBusEvent
Definition LinBusEvent.h:20