Vector BLF

Loading...
Searching...
No Matches
FlexRayVFrReceiveMsg.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 <array>
10
11#include <Vector/BLF/AbstractFile.h>
12#include <Vector/BLF/ObjectHeader.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16 namespace Vector {
17 namespace BLF {
18
24 struct VECTOR_BLF_EXPORT FlexRayVFrReceiveMsg final : ObjectHeader {
25 FlexRayVFrReceiveMsg();
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
43 uint16_t version {};
44
54 uint16_t channelMask {};
55
65 uint8_t dir {};
66
68 uint8_t reservedFlexRayVFrReceiveMsg1 {};
69
76 uint32_t clientIndexFlexRayVFrReceiveMsg {};
77
83 uint32_t clusterNo {};
84
90 uint16_t frameId {};
91
97 uint16_t headerCrc1 {};
98
104 uint16_t headerCrc2 {};
105
111 uint16_t byteCount {};
112
121 uint16_t dataCount {};
122
128 uint8_t cycle {};
129
131 uint8_t reservedFlexRayVFrReceiveMsg2 {};
132
145 uint32_t tag {};
146
184 uint32_t data {};
185
223 uint32_t frameFlags {};
224
230 uint32_t appParameter {};
231
237 std::array<uint8_t, 254> dataBytes {};
238
240 uint16_t reservedFlexRayVFrReceiveMsg3 {};
241
243 uint32_t reservedFlexRayVFrReceiveMsg4 {};
244};
245
246}
247}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::FlexRayVFrReceiveMsg::headerCrc1
uint16_t headerCrc1
header crc channel 1
Definition FlexRayVFrReceiveMsg.h:97
Vector::BLF::FlexRayVFrReceiveMsg::version
uint16_t version
version of data struct
Definition FlexRayVFrReceiveMsg.h:43
Vector::BLF::FlexRayVFrReceiveMsg::dataCount
uint16_t dataCount
length of the data array (stretchy struct)
Definition FlexRayVFrReceiveMsg.h:121
Vector::BLF::FlexRayVFrReceiveMsg::tag
uint32_t tag
type of cc
Definition FlexRayVFrReceiveMsg.h:145
Vector::BLF::FlexRayVFrReceiveMsg::appParameter
uint32_t appParameter
TxRq, TxAck flags.
Definition FlexRayVFrReceiveMsg.h:230
Vector::BLF::FlexRayVFrReceiveMsg::data
uint32_t data
frame flags
Definition FlexRayVFrReceiveMsg.h:184
Vector::BLF::FlexRayVFrReceiveMsg::reservedFlexRayVFrReceiveMsg2
uint8_t reservedFlexRayVFrReceiveMsg2
Definition FlexRayVFrReceiveMsg.h:131
Vector::BLF::FlexRayVFrReceiveMsg::channel
uint16_t channel
application channel
Definition FlexRayVFrReceiveMsg.h:36
Vector::BLF::FlexRayVFrReceiveMsg::frameId
uint16_t frameId
slot identifier, word
Definition FlexRayVFrReceiveMsg.h:90
Vector::BLF::FlexRayVFrReceiveMsg::reservedFlexRayVFrReceiveMsg3
uint16_t reservedFlexRayVFrReceiveMsg3
Definition FlexRayVFrReceiveMsg.h:240
Vector::BLF::FlexRayVFrReceiveMsg::headerCrc2
uint16_t headerCrc2
header crc channel 2
Definition FlexRayVFrReceiveMsg.h:104
Vector::BLF::FlexRayVFrReceiveMsg::read
void read(AbstractFile &is) override
Definition FlexRayVFrReceiveMsg.cpp:14
Vector::BLF::FlexRayVFrReceiveMsg::dataBytes
std::array< uint8_t, 254 > dataBytes
array of databytes
Definition FlexRayVFrReceiveMsg.h:237
Vector::BLF::FlexRayVFrReceiveMsg::reservedFlexRayVFrReceiveMsg4
uint32_t reservedFlexRayVFrReceiveMsg4
Definition FlexRayVFrReceiveMsg.h:243
Vector::BLF::FlexRayVFrReceiveMsg::byteCount
uint16_t byteCount
byte count (not payload) of frame from CC receive buffer
Definition FlexRayVFrReceiveMsg.h:111
Vector::BLF::FlexRayVFrReceiveMsg::frameFlags
uint32_t frameFlags
frame flags
Definition FlexRayVFrReceiveMsg.h:223
Vector::BLF::FlexRayVFrReceiveMsg::channelMask
uint16_t channelMask
channel mask
Definition FlexRayVFrReceiveMsg.h:54
Vector::BLF::FlexRayVFrReceiveMsg::reservedFlexRayVFrReceiveMsg1
uint8_t reservedFlexRayVFrReceiveMsg1
Definition FlexRayVFrReceiveMsg.h:68
Vector::BLF::FlexRayVFrReceiveMsg::clusterNo
uint32_t clusterNo
number of cluster
Definition FlexRayVFrReceiveMsg.h:83
Vector::BLF::FlexRayVFrReceiveMsg::cycle
uint8_t cycle
current cycle
Definition FlexRayVFrReceiveMsg.h:128
Vector::BLF::FlexRayVFrReceiveMsg::write
void write(AbstractFile &os) override
Definition FlexRayVFrReceiveMsg.cpp:39
Vector::BLF::FlexRayVFrReceiveMsg::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition FlexRayVFrReceiveMsg.cpp:64
Vector::BLF::FlexRayVFrReceiveMsg::dir
uint8_t dir
dir flag (tx, rx)
Definition FlexRayVFrReceiveMsg.h:65
Vector::BLF::FlexRayVFrReceiveMsg::clientIndexFlexRayVFrReceiveMsg
uint32_t clientIndexFlexRayVFrReceiveMsg
clientindex of send node
Definition FlexRayVFrReceiveMsg.h:76