Vector BLF: Most150PktFragment.h Source File

Vector BLF

Loading...
Searching...
No Matches
Most150PktFragment.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 Most150PktFragment final : ObjectHeader2 { /* applied for MOST50 and MOST150 */
25 Most150PktFragment();
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
39 uint8_t reservedMost150PktFragment1 {};
40
78 uint8_t ackNack {};
79
97 uint32_t validMask {};
98
104 uint32_t sourceAdr {};
105
111 uint32_t destAdr {};
112
121 uint8_t pAck {};
122
132 uint8_t cAck {};
133
139 uint8_t priority {};
140
146 uint8_t pIndex {};
147
153 uint32_t crc {};
154
164 uint32_t dataLen {};
165
181 uint32_t dataLenAnnounced {};
182
193 uint32_t firstDataLen {};
194
196 uint32_t reservedMost150PktFragment2 {};
197
203 std::vector<uint8_t> firstData {};
204};
205
206}
207}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::Most150PktFragment
MOST_150_PKT_FRAGMENT.
Definition: Most150PktFragment.h:24
Vector::BLF::ObjectHeader2
Object header.
Definition: ObjectHeader2.h:22