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
16 namespace Vector {
17 namespace 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::reservedMostCtrl4
uint32_t reservedMostCtrl4
Definition MostCtrl.h:171
Vector::BLF::MostCtrl::dir
uint8_t dir
Definition MostCtrl.h:44
Vector::BLF::MostCtrl::reservedMostCtrl2
uint8_t reservedMostCtrl2
Definition MostCtrl.h:65
Vector::BLF::MostCtrl::reservedMostCtrl1
uint8_t reservedMostCtrl1
Definition MostCtrl.h:47
Vector::BLF::MostCtrl::msg
std::array< uint8_t, 17 > msg
Definition MostCtrl.h:62
Vector::BLF::MostCtrl::reservedMostCtrl3
uint8_t reservedMostCtrl3
Definition MostCtrl.h:129
Vector::BLF::MostCtrl::write
void write(AbstractFile &os) override
Definition MostCtrl.cpp:31
Vector::BLF::MostCtrl::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition MostCtrl.cpp:48
Vector::BLF::MostCtrl::destAdr
uint32_t destAdr
Definition MostCtrl.h:57
Vector::BLF::MostCtrl::read
void read(AbstractFile &is) override
Definition MostCtrl.cpp:14
Vector::BLF::MostCtrl::sourceAdr
uint32_t sourceAdr
Definition MostCtrl.h:52
Vector::BLF::MostCtrl::channel
uint16_t channel
application channel
Definition MostCtrl.h:36
Vector::BLF::MostCtrl::rTyp
uint16_t rTyp
Control message sub type.
Definition MostCtrl.h:79
Vector::BLF::MostCtrl::ackNack
uint8_t ackNack
acknowledge bits
Definition MostCtrl.h:168
Vector::BLF::MostCtrl::state
uint8_t state
Transmission state MOST25.
Definition MostCtrl.h:126
Vector::BLF::MostCtrl::rTypAdr
uint8_t rTypAdr
Addressing mode.
Definition MostCtrl.h:91