Vector BLF: MostCtrl.h Source File

Vector BLF

Loading...
Searching...
No Matches
MostCtrl.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 <array>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
24 struct VECTOR_BLF_EXPORT MostCtrl final : ObjectHeader {
25 MostCtrl();
26
27 void read(AbstractFile & is) override;
28 void write(AbstractFile & os) override;
29 uint32_t calculateObjectSize() const override;
30
36 uint16_t channel {};
37
44 uint8_t dir {};
45
47 uint8_t reservedMostCtrl1 {};
48
52 uint32_t sourceAdr {};
53
57 uint32_t destAdr {};
58
62 std::array<uint8_t, 17> msg {};
63
65 uint8_t reservedMostCtrl2 {};
66
79 uint16_t rTyp {};
80
91 uint8_t rTypAdr {};
92
126 uint8_t state {};
127
129 uint8_t reservedMostCtrl3 {};
130
168 uint8_t ackNack {};
169
171 uint32_t reservedMostCtrl4 {};
172};
173
174}
175}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::MostCtrl
MOST_CTRL.
Definition: MostCtrl.h:24
Vector::BLF::ObjectHeader
Object header.
Definition: ObjectHeader.h:22