Vector BLF: CanDriverHwSync.h Source File

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
14namespace Vector {
15namespace 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
CAN_DRIVER_SYNC.
Definition: CanDriverHwSync.h:22
Vector::BLF::CanDriverHwSync::Flags
Flags
Definition: CanDriverHwSync.h:37
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22