Vector BLF: Most150Message.h Source File

Vector BLF

Loading...
Searching...
No Matches
Most150Message.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 Most150Message final : ObjectHeader2 {
25 Most150Message();
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 reservedMost150Message1 {};
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 reservedMost150Message2 {};
152
158 uint32_t crc {};
159
168 uint8_t pAck {};
169
179 uint8_t cAck {};
180
186 uint8_t priority {};
187
193 uint8_t pIndex {};
194
200 uint32_t msgLen {};
201
203 uint32_t reservedMost150Message3 {};
204
210 std::vector<uint8_t> msg {};
211};
212
213}
214}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::Most150Message::msg
std::vector< uint8_t > msg
variable data
Definition Most150Message.h:210
Vector::BLF::Most150Message::write
void write(AbstractFile &os) override
Definition Most150Message.cpp:39
Vector::BLF::Most150Message::ackNack
uint8_t ackNack
acknowledge code
Definition Most150Message.h:148
Vector::BLF::Most150Message::msgLen
uint32_t msgLen
length of variable data in bytes (51 max)
Definition Most150Message.h:200
Vector::BLF::Most150Message::transferType
uint8_t transferType
Tranfer Type.
Definition Most150Message.h:77
Vector::BLF::Most150Message::sourceAdr
uint32_t sourceAdr
source address
Definition Most150Message.h:56
Vector::BLF::Most150Message::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition Most150Message.cpp:66
Vector::BLF::Most150Message::channel
uint16_t channel
application channel
Definition Most150Message.h:36
Vector::BLF::Most150Message::pIndex
uint8_t pIndex
packet index, increments per message on MOST
Definition Most150Message.h:193
Vector::BLF::Most150Message::crc
uint32_t crc
Cyclic Redundancy Check.
Definition Most150Message.h:158
Vector::BLF::Most150Message::cAck
uint8_t cAck
CRC acknowledge from the packet receiver(s) to the packet transmitter.
Definition Most150Message.h:179
Vector::BLF::Most150Message::dir
uint8_t dir
direction: 0: Rx; 1: Tx; 2: TxRequest
Definition Most150Message.h:46
Vector::BLF::Most150Message::pAck
uint8_t pAck
a preemptive acknowledge code
Definition Most150Message.h:168
Vector::BLF::Most150Message::destAdr
uint32_t destAdr
target address
Definition Most150Message.h:63
Vector::BLF::Most150Message::reservedMost150Message2
uint8_t reservedMost150Message2
Definition Most150Message.h:151
Vector::BLF::Most150Message::state
uint8_t state
transmission status
Definition Most150Message.h:109
Vector::BLF::Most150Message::priority
uint8_t priority
priority of the message
Definition Most150Message.h:186
Vector::BLF::Most150Message::reservedMost150Message3
uint32_t reservedMost150Message3
Definition Most150Message.h:203
Vector::BLF::Most150Message::read
void read(AbstractFile &is) override
Definition Most150Message.cpp:14
Vector::BLF::Most150Message::reservedMost150Message1
uint8_t reservedMost150Message1
Definition Most150Message.h:49