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::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition MostPkt2.cpp:68
Vector::BLF::MostPkt2::transferType
uint8_t transferType
Tranfer Type.
Definition MostPkt2.h:99
Vector::BLF::MostPkt2::read
void read(AbstractFile &is) override
Definition MostPkt2.cpp:14
Vector::BLF::MostPkt2::arbitration
uint8_t arbitration
Definition MostPkt2.h:62
Vector::BLF::MostPkt2::quadsToFollow
uint8_t quadsToFollow
Definition MostPkt2.h:72
Vector::BLF::MostPkt2::reservedMostPkt1
uint8_t reservedMostPkt1
Definition MostPkt2.h:47
Vector::BLF::MostPkt2::reservedMostPkt2
uint8_t reservedMostPkt2
Definition MostPkt2.h:75
Vector::BLF::MostPkt2::reservedMostPkt4
uint16_t reservedMostPkt4
Definition MostPkt2.h:112
Vector::BLF::MostPkt2::state
uint8_t state
Definition MostPkt2.h:106
Vector::BLF::MostPkt2::pktData
std::vector< uint8_t > pktData
variable data
Definition MostPkt2.h:129
Vector::BLF::MostPkt2::crc
uint16_t crc
Definition MostPkt2.h:80
Vector::BLF::MostPkt2::timeRes
uint8_t timeRes
Definition MostPkt2.h:67
Vector::BLF::MostPkt2::dir
uint8_t dir
Definition MostPkt2.h:44
Vector::BLF::MostPkt2::sourceAdr
uint32_t sourceAdr
Definition MostPkt2.h:52
Vector::BLF::MostPkt2::priority
uint8_t priority
Definition MostPkt2.h:85
Vector::BLF::MostPkt2::reservedMostPkt3
uint8_t reservedMostPkt3
Definition MostPkt2.h:109
Vector::BLF::MostPkt2::channel
uint16_t channel
application channel
Definition MostPkt2.h:36
Vector::BLF::MostPkt2::reservedMostPkt5
uint32_t reservedMostPkt5
Definition MostPkt2.h:122
Vector::BLF::MostPkt2::write
void write(AbstractFile &os) override
Definition MostPkt2.cpp:40
Vector::BLF::MostPkt2::pktDataLength
uint32_t pktDataLength
length of variable data in bytes
Definition MostPkt2.h:119
Vector::BLF::MostPkt2::destAdr
uint32_t destAdr
Definition MostPkt2.h:57