Vector BLF: MostEthernetPktFragment.h Source File

Vector BLF

Loading...
Searching...
No Matches
MostEthernetPktFragment.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 MostEthernetPktFragment final : ObjectHeader2 {
25 MostEthernetPktFragment();
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 reservedMostEthernetPktFragment1 {};
40
78 uint8_t ackNack {};
79
97 uint32_t validMask {};
98
104 uint64_t sourceMacAdr {};
105
111 uint64_t destMacAdr {};
112
121 uint8_t pAck {};
122
132 uint8_t cAck {};
133
135 uint16_t reservedMostEthernetPktFragment2 {};
136
142 uint32_t crc {};
143
153 uint32_t dataLen {};
154
170 uint32_t dataLenAnnounced {};
171
182 uint32_t firstDataLen {};
183
185 uint32_t reservedMostEthernetPktFragment3 {};
186
192 std::vector<uint8_t> firstData {};
193};
194
195}
196}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::MostEthernetPktFragment::dataLen
uint32_t dataLen
number of transmitted user data bytes
Definition MostEthernetPktFragment.h:153
Vector::BLF::MostEthernetPktFragment::validMask
uint32_t validMask
bitfield indicating which members have valid data
Definition MostEthernetPktFragment.h:97
Vector::BLF::MostEthernetPktFragment::ackNack
uint8_t ackNack
acknowledge code
Definition MostEthernetPktFragment.h:78
Vector::BLF::MostEthernetPktFragment::channel
uint16_t channel
application channel
Definition MostEthernetPktFragment.h:36
Vector::BLF::MostEthernetPktFragment::firstDataLen
uint32_t firstDataLen
number of bytes in firstData
Definition MostEthernetPktFragment.h:182
Vector::BLF::MostEthernetPktFragment::sourceMacAdr
uint64_t sourceMacAdr
48 bit source address
Definition MostEthernetPktFragment.h:104
Vector::BLF::MostEthernetPktFragment::crc
uint32_t crc
Cyclic Redundancy Check.
Definition MostEthernetPktFragment.h:142
Vector::BLF::MostEthernetPktFragment::reservedMostEthernetPktFragment1
uint8_t reservedMostEthernetPktFragment1
Definition MostEthernetPktFragment.h:39
Vector::BLF::MostEthernetPktFragment::firstData
std::vector< uint8_t > firstData
variable data
Definition MostEthernetPktFragment.h:192
Vector::BLF::MostEthernetPktFragment::write
void write(AbstractFile &os) override
Definition MostEthernetPktFragment.cpp:37
Vector::BLF::MostEthernetPktFragment::destMacAdr
uint64_t destMacAdr
48 bit target address
Definition MostEthernetPktFragment.h:111
Vector::BLF::MostEthernetPktFragment::read
void read(AbstractFile &is) override
Definition MostEthernetPktFragment.cpp:14
Vector::BLF::MostEthernetPktFragment::reservedMostEthernetPktFragment2
uint16_t reservedMostEthernetPktFragment2
Definition MostEthernetPktFragment.h:135
Vector::BLF::MostEthernetPktFragment::pAck
uint8_t pAck
a preemptive acknowledge code
Definition MostEthernetPktFragment.h:121
Vector::BLF::MostEthernetPktFragment::cAck
uint8_t cAck
CRC acknowledge from the packet receiver(s) to the packet transmitter.
Definition MostEthernetPktFragment.h:132
Vector::BLF::MostEthernetPktFragment::reservedMostEthernetPktFragment3
uint32_t reservedMostEthernetPktFragment3
Definition MostEthernetPktFragment.h:185
Vector::BLF::MostEthernetPktFragment::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition MostEthernetPktFragment.cpp:62
Vector::BLF::MostEthernetPktFragment::dataLenAnnounced
uint32_t dataLenAnnounced
announced user data length at the start of the transmission
Definition MostEthernetPktFragment.h:170