Vector BLF

Loading...
Searching...
No Matches
LinSpikeEvent2.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/LinBusEvent.h>
11#include <Vector/BLF/ObjectHeader.h>
12
13#include <Vector/BLF/vector_blf_export.h>
14
15 namespace Vector {
16 namespace BLF {
17
24 struct VECTOR_BLF_EXPORT LinSpikeEvent2 final : ObjectHeader, LinBusEvent {
25 LinSpikeEvent2();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
36 uint32_t width {};
37
44 uint8_t internal {};
45
47 uint8_t reservedLinSpikeEvent1 {};
48
50 uint16_t reservedLinSpikeEvent2 {};
51};
52
53}
54}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinSpikeEvent2::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinSpikeEvent2.cpp:33
Vector::BLF::LinSpikeEvent2::internal
uint8_t internal
Definition LinSpikeEvent2.h:44
Vector::BLF::LinSpikeEvent2::width
uint32_t width
the spike's width in microseconds
Definition LinSpikeEvent2.h:36
Vector::BLF::LinSpikeEvent2::reservedLinSpikeEvent1
uint8_t reservedLinSpikeEvent1
Definition LinSpikeEvent2.h:47
Vector::BLF::LinSpikeEvent2::reservedLinSpikeEvent2
uint16_t reservedLinSpikeEvent2
Definition LinSpikeEvent2.h:50
Vector::BLF::LinSpikeEvent2::write
void write(AbstractFile &os) override
Definition LinSpikeEvent2.cpp:24
Vector::BLF::LinSpikeEvent2::read
void read(AbstractFile &is) override
Definition LinSpikeEvent2.cpp:14