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
14 namespace Vector {
15 namespace 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::read
virtual void read(AbstractFile &is)
Definition LinBusEvent.cpp:10
Vector::BLF::LinBusEvent::eventBaudrate
uint32_t eventBaudrate
Baudrate of the event in bit/sec.
Definition LinBusEvent.h:49
Vector::BLF::LinBusEvent::write
virtual void write(AbstractFile &os)
Definition LinBusEvent.cpp:17
Vector::BLF::LinBusEvent::channel
uint16_t channel
application channel
Definition LinBusEvent.h:56
Vector::BLF::LinBusEvent::reservedLinBusEvent
uint16_t reservedLinBusEvent
Definition LinBusEvent.h:59
Vector::BLF::LinBusEvent::calculateObjectSize
virtual uint32_t calculateObjectSize() const
Definition LinBusEvent.cpp:24
Vector::BLF::LinBusEvent::sof
uint64_t sof
Start Of Frame timestamp.
Definition LinBusEvent.h:42