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::channel
uint16_t channel
application channel
Definition MostPkt.h:37
Vector::BLF::MostPkt::timeRes
uint8_t timeRes
Definition MostPkt.h:68
Vector::BLF::MostPkt::reservedMostPkt1
uint8_t reservedMostPkt1
Definition MostPkt.h:48
Vector::BLF::MostPkt::reservedMostPkt4
uint16_t reservedMostPkt4
Definition MostPkt.h:113
Vector::BLF::MostPkt::transferType
uint8_t transferType
Tranfer type.
Definition MostPkt.h:100
Vector::BLF::MostPkt::pktDataLength
uint32_t pktDataLength
length of variable data in bytes
Definition MostPkt.h:120
Vector::BLF::MostPkt::state
uint8_t state
Definition MostPkt.h:107
Vector::BLF::MostPkt::sourceAdr
uint32_t sourceAdr
Definition MostPkt.h:53
Vector::BLF::MostPkt::write
void write(AbstractFile &os) override
Definition MostPkt.cpp:40
Vector::BLF::MostPkt::quadsToFollow
uint8_t quadsToFollow
Definition MostPkt.h:73
Vector::BLF::MostPkt::reservedMostPkt5
uint32_t reservedMostPkt5
Definition MostPkt.h:123
Vector::BLF::MostPkt::arbitration
uint8_t arbitration
Definition MostPkt.h:63
Vector::BLF::MostPkt::dir
uint8_t dir
Definition MostPkt.h:45
Vector::BLF::MostPkt::reservedMostPkt3
uint8_t reservedMostPkt3
Definition MostPkt.h:110
Vector::BLF::MostPkt::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition MostPkt.cpp:68
Vector::BLF::MostPkt::destAdr
uint32_t destAdr
Definition MostPkt.h:58
Vector::BLF::MostPkt::crc
uint16_t crc
Definition MostPkt.h:81
Vector::BLF::MostPkt::priority
uint8_t priority
Definition MostPkt.h:86
Vector::BLF::MostPkt::read
void read(AbstractFile &is) override
Definition MostPkt.cpp:14
Vector::BLF::MostPkt::pktData
std::vector< uint8_t > pktData
variable data
Definition MostPkt.h:130
Vector::BLF::MostPkt::reservedMostPkt2
uint8_t reservedMostPkt2
Definition MostPkt.h:76