Vector BLF: MostPkt2.h Source File

Vector BLF

Loading...
Searching...
No Matches
MostPkt2.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 MostPkt2 final : ObjectHeader2 {
25 MostPkt2();
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 reservedMostPkt1 {};
48
52 uint32_t sourceAdr {};
53
57 uint32_t destAdr {};
58
62 uint8_t arbitration {};
63
67 uint8_t timeRes {};
68
72 uint8_t quadsToFollow {};
73
75 uint8_t reservedMostPkt2 {};
76
80 uint16_t crc {};
81
85 uint8_t priority {};
86
99 uint8_t transferType {};
100
106 uint8_t state {};
107
109 uint8_t reservedMostPkt3 {};
110
112 uint16_t reservedMostPkt4 {};
113
119 uint32_t pktDataLength {};
120
122 uint32_t reservedMostPkt5 {};
123
129 std::vector<uint8_t> pktData {};
130};
131
132}
133}
Vector::BLF::AbstractFile
Definition: AbstractFile.h:19
Vector::BLF::MostPkt2
MOST_PKT2.
Definition: MostPkt2.h:24
Vector::BLF::ObjectHeader2
Object header.
Definition: ObjectHeader2.h:22