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::cAck
uint8_t cAck
CRC acknowledge from the packet receiver(s) to the packet transmitter.
Definition Most150PktFragment.h:132
Vector::BLF::Most150PktFragment::firstData
std::vector< uint8_t > firstData
variable data
Definition Most150PktFragment.h:203
Vector::BLF::Most150PktFragment::reservedMost150PktFragment2
uint32_t reservedMost150PktFragment2
Definition Most150PktFragment.h:196
Vector::BLF::Most150PktFragment::dataLen
uint32_t dataLen
number of transmitted user data bytes
Definition Most150PktFragment.h:164
Vector::BLF::Most150PktFragment::sourceAdr
uint32_t sourceAdr
source address
Definition Most150PktFragment.h:104
Vector::BLF::Most150PktFragment::validMask
uint32_t validMask
bitfield indicating which members have valid data
Definition Most150PktFragment.h:97
Vector::BLF::Most150PktFragment::destAdr
uint32_t destAdr
target address
Definition Most150PktFragment.h:111
Vector::BLF::Most150PktFragment::priority
uint8_t priority
priority of the message
Definition Most150PktFragment.h:139
Vector::BLF::Most150PktFragment::crc
uint32_t crc
Cyclic Redundancy Check.
Definition Most150PktFragment.h:153
Vector::BLF::Most150PktFragment::pAck
uint8_t pAck
a preemptive acknowledge code
Definition Most150PktFragment.h:121
Vector::BLF::Most150PktFragment::reservedMost150PktFragment1
uint8_t reservedMost150PktFragment1
Definition Most150PktFragment.h:39
Vector::BLF::Most150PktFragment::channel
uint16_t channel
application channel
Definition Most150PktFragment.h:36
Vector::BLF::Most150PktFragment::pIndex
uint8_t pIndex
packet index, increments per message on MOST
Definition Most150PktFragment.h:146
Vector::BLF::Most150PktFragment::ackNack
uint8_t ackNack
acknowledge code
Definition Most150PktFragment.h:78
Vector::BLF::Most150PktFragment::read
void read(AbstractFile &is) override
Definition Most150PktFragment.cpp:14
Vector::BLF::Most150PktFragment::write
void write(AbstractFile &os) override
Definition Most150PktFragment.cpp:38
Vector::BLF::Most150PktFragment::dataLenAnnounced
uint32_t dataLenAnnounced
announced user data length at the start of the transmission
Definition Most150PktFragment.h:181
Vector::BLF::Most150PktFragment::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition Most150PktFragment.cpp:64
Vector::BLF::Most150PktFragment::firstDataLen
uint32_t firstDataLen
number of bytes in firstData
Definition Most150PktFragment.h:193