Vector BLF

Loading...
Searching...
No Matches
Most50Message.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
16 namespace Vector {
17 namespace BLF {
18
24 struct VECTOR_BLF_EXPORT Most50Message final : ObjectHeader2 {
25 Most50Message();
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
46 uint8_t dir {};
47
49 uint8_t reservedMost50Message1 {};
50
56 uint32_t sourceAdr {};
57
63 uint32_t destAdr {};
64
77 uint8_t transferType {};
78
109 uint8_t state {};
110
148 uint8_t ackNack {};
149
151 uint8_t reservedMost50Message2 {};
152
158 uint32_t crc {};
159
161 uint16_t reservedMost50Message3 {};
162
168 uint8_t priority {};
169
171 uint8_t reservedMost50Message4 {};
172
178 uint32_t msgLen {};
179
181 uint32_t reservedMost50Message5 {};
182
188 std::vector<uint8_t> msg {};
189};
190
191}
192}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::Most50Message::reservedMost50Message2
uint8_t reservedMost50Message2
Definition Most50Message.h:151
Vector::BLF::Most50Message::destAdr
uint32_t destAdr
target address
Definition Most50Message.h:63
Vector::BLF::Most50Message::reservedMost50Message1
uint8_t reservedMost50Message1
Definition Most50Message.h:49
Vector::BLF::Most50Message::write
void write(AbstractFile &os) override
Definition Most50Message.cpp:38
Vector::BLF::Most50Message::priority
uint8_t priority
priority of the message
Definition Most50Message.h:168
Vector::BLF::Most50Message::sourceAdr
uint32_t sourceAdr
source address
Definition Most50Message.h:56
Vector::BLF::Most50Message::reservedMost50Message3
uint16_t reservedMost50Message3
Definition Most50Message.h:161
Vector::BLF::Most50Message::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition Most50Message.cpp:64
Vector::BLF::Most50Message::msg
std::vector< uint8_t > msg
variable data
Definition Most50Message.h:188
Vector::BLF::Most50Message::channel
uint16_t channel
application channel
Definition Most50Message.h:36
Vector::BLF::Most50Message::reservedMost50Message5
uint32_t reservedMost50Message5
Definition Most50Message.h:181
Vector::BLF::Most50Message::transferType
uint8_t transferType
Tranfer Type.
Definition Most50Message.h:77
Vector::BLF::Most50Message::msgLen
uint32_t msgLen
length of variable data in bytes (17 max)
Definition Most50Message.h:178
Vector::BLF::Most50Message::dir
uint8_t dir
direction: 0: Rx; 1: Tx; 2: TxRequest
Definition Most50Message.h:46
Vector::BLF::Most50Message::reservedMost50Message4
uint8_t reservedMost50Message4
Definition Most50Message.h:171
Vector::BLF::Most50Message::state
uint8_t state
transmission status
Definition Most50Message.h:109
Vector::BLF::Most50Message::ackNack
uint8_t ackNack
acknowledge code
Definition Most50Message.h:148
Vector::BLF::Most50Message::crc
uint32_t crc
Cyclic Redundancy Check.
Definition Most50Message.h:158
Vector::BLF::Most50Message::read
void read(AbstractFile &is) override
Definition Most50Message.cpp:14