Vector BLF: Most50Pkt.h Source File

Vector BLF

Loading...
Searching...
No Matches
Most50Pkt.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>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader2.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
24 struct VECTOR_BLF_EXPORT Most50Pkt final : ObjectHeader2 {
25 Most50Pkt();
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
46 uint8_t dir {};
47
49 uint8_t reservedMost50Pkt1 {};
50
56 uint32_t sourceAdr {};
57
63 uint32_t destAdr {};
64
77 uint8_t transferType {};
78
109 uint8_t state {};
110
148 uint8_t ackNack {};
149
151 uint8_t reservedMost50Pkt2 {};
152
158 uint32_t crc {};
159
161 uint16_t reservedMost50Pkt3 {};
162
168 uint8_t priority {};
169
171 uint8_t reservedMost50Pkt4 {};
172
178 uint32_t pktDataLength {};
179
181 uint32_t reservedMost50Pkt5 {};
182
188 std::vector<uint8_t> pktData {};
189};
190
191}
192}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::Most50Pkt
MOST_50_PKT.
Definition: Most50Pkt.h:24
Vector::BLF::ObjectHeader2
Object header.
Definition: ObjectHeader2.h:22