Vector BLF

Loading...
Searching...
No Matches
LinUnexpectedWakeup.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 LinUnexpectedWakeup final : ObjectHeader, LinBusEvent {
25 LinUnexpectedWakeup();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
37 uint64_t width {};
38
45 uint8_t signal {};
46
48 uint8_t reservedLinUnexpectedWakeup1 {};
49
51 uint16_t reservedLinUnexpectedWakeup2 {};
52
54 uint32_t reservedLinUnexpectedWakeup3 {};
55};
56
57}
58}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinUnexpectedWakeup::reservedLinUnexpectedWakeup1
uint8_t reservedLinUnexpectedWakeup1
Definition LinUnexpectedWakeup.h:48
Vector::BLF::LinUnexpectedWakeup::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinUnexpectedWakeup.cpp:35
Vector::BLF::LinUnexpectedWakeup::reservedLinUnexpectedWakeup2
uint16_t reservedLinUnexpectedWakeup2
Definition LinUnexpectedWakeup.h:51
Vector::BLF::LinUnexpectedWakeup::write
void write(AbstractFile &os) override
Definition LinUnexpectedWakeup.cpp:25
Vector::BLF::LinUnexpectedWakeup::signal
uint8_t signal
byte signal of the unexpected wakeup (valid for LIN 1.x)
Definition LinUnexpectedWakeup.h:45
Vector::BLF::LinUnexpectedWakeup::read
void read(AbstractFile &is) override
Definition LinUnexpectedWakeup.cpp:14
Vector::BLF::LinUnexpectedWakeup::width
uint64_t width
width of the unexpected wakeup in nanoseconds (valid for LIN 2.x)
Definition LinUnexpectedWakeup.h:37
Vector::BLF::LinUnexpectedWakeup::reservedLinUnexpectedWakeup3
uint32_t reservedLinUnexpectedWakeup3
Definition LinUnexpectedWakeup.h:54