Vector BLF: MostPkt.h Source File

Vector BLF

Loading...
Searching...
No Matches
MostPkt.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/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
25 struct VECTOR_BLF_EXPORT MostPkt final : ObjectHeader {
26 MostPkt();
27
28 void read(AbstractFile & is) override;
29 void write(AbstractFile & os) override;
30 uint32_t calculateObjectSize() const override;
31
37 uint16_t channel {};
38
45 uint8_t dir {};
46
48 uint8_t reservedMostPkt1 {};
49
53 uint32_t sourceAdr {};
54
58 uint32_t destAdr {};
59
63 uint8_t arbitration {};
64
68 uint8_t timeRes {};
69
73 uint8_t quadsToFollow {};
74
76 uint8_t reservedMostPkt2 {};
77
81 uint16_t crc {};
82
86 uint8_t priority {};
87
100 uint8_t transferType {};
101
107 uint8_t state {};
108
110 uint8_t reservedMostPkt3 {};
111
113 uint16_t reservedMostPkt4 {};
114
120 uint32_t pktDataLength {};
121
123 uint32_t reservedMostPkt5 {};
124
130 std::vector<uint8_t> pktData {};
131};
132
133}
134}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::MostPkt
MOST_PKT.
Definition MostPkt.h:25
Vector::BLF::ObjectHeader
Object header.
Definition ObjectHeader.h:22