Vector BLF

Loading...
Searching...
No Matches
CanDriverHwSync.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
22 struct VECTOR_BLF_EXPORT CanDriverHwSync final : ObjectHeader {
23 CanDriverHwSync();
24
25 void read(AbstractFile & is) override;
26 void write(AbstractFile & os) override;
27 uint32_t calculateObjectSize() const override;
28
34 uint16_t channel {};
35
37 enum Flags : uint8_t {
39 Tx = 1,
40
42 Rx = 2,
43
45 RxThis = 4
46 };
47
49 uint8_t flags {};
50
52 uint8_t reservedCanDriverHwSync1 {};
53
55 uint32_t reservedCanDriverHwSync2 {};
56};
57
58}
59}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::CanDriverHwSync::flags
uint8_t flags
Definition CanDriverHwSync.h:49
Vector::BLF::CanDriverHwSync::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition CanDriverHwSync.cpp:30
Vector::BLF::CanDriverHwSync::Flags
Flags
Definition CanDriverHwSync.h:37
Vector::BLF::CanDriverHwSync::Tx
@ Tx
Definition CanDriverHwSync.h:39
Vector::BLF::CanDriverHwSync::RxThis
@ RxThis
Definition CanDriverHwSync.h:45
Vector::BLF::CanDriverHwSync::Rx
@ Rx
Definition CanDriverHwSync.h:42
Vector::BLF::CanDriverHwSync::reservedCanDriverHwSync2
uint32_t reservedCanDriverHwSync2
Definition CanDriverHwSync.h:55
Vector::BLF::CanDriverHwSync::reservedCanDriverHwSync1
uint8_t reservedCanDriverHwSync1
Definition CanDriverHwSync.h:52
Vector::BLF::CanDriverHwSync::write
void write(AbstractFile &os) override
Definition CanDriverHwSync.cpp:22
Vector::BLF::CanDriverHwSync::channel
uint16_t channel
channel where sync occured
Definition CanDriverHwSync.h:34
Vector::BLF::CanDriverHwSync::read
void read(AbstractFile &is) override
Definition CanDriverHwSync.cpp:14