Vector BLF: FlexRayVFrReceiveMsgEx.h Source File

Vector BLF

Loading...
Searching...
No Matches
FlexRayVFrReceiveMsgEx.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#include <vector>
11
12#include <Vector/BLF/AbstractFile.h>
13#include <Vector/BLF/ObjectHeader.h>
14
15#include <Vector/BLF/vector_blf_export.h>
16
17namespace Vector {
18namespace BLF {
19
25 struct VECTOR_BLF_EXPORT FlexRayVFrReceiveMsgEx final : ObjectHeader {
26 FlexRayVFrReceiveMsgEx();
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
44 uint16_t version {};
45
55 uint16_t channelMask {};
56
66 uint16_t dir {};
67
74 uint32_t clientIndexFlexRayVFrReceiveMsgEx {};
75
81 uint32_t clusterNo {};
82
88 uint16_t frameId {};
89
95 uint16_t headerCrc1 {};
96
102 uint16_t headerCrc2 {};
103
109 uint16_t byteCount {};
110
119 uint16_t dataCount {};
120
126 uint16_t cycle {};
127
140 uint32_t tag {};
141
196 uint32_t data {};
197
235 uint32_t frameFlags {};
236
242 uint32_t appParameter {};
243
249 uint32_t frameCrc {};
250
258 uint32_t frameLengthNs {};
259
266 uint16_t frameId1 {};
267
274 uint16_t pduOffset {};
275
285 uint16_t blfLogMask {};
286
288 std::array<uint16_t, 13> reservedFlexRayVFrReceiveMsgEx1 {};
289
295 std::vector<uint8_t> dataBytes {};
296
298 std::vector<uint8_t> reservedFlexRayVFrReceiveMsgEx2 {};
299};
300
301}
302}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::FlexRayVFrReceiveMsgEx::read
void read(AbstractFile &is) override
Definition FlexRayVFrReceiveMsgEx.cpp:14
Vector::BLF::FlexRayVFrReceiveMsgEx::frameId
uint16_t frameId
slot identifier, word
Definition FlexRayVFrReceiveMsgEx.h:88
Vector::BLF::FlexRayVFrReceiveMsgEx::version
uint16_t version
version of data struct
Definition FlexRayVFrReceiveMsgEx.h:44
Vector::BLF::FlexRayVFrReceiveMsgEx::headerCrc1
uint16_t headerCrc1
header crc channel 1
Definition FlexRayVFrReceiveMsgEx.h:95
Vector::BLF::FlexRayVFrReceiveMsgEx::dataBytes
std::vector< uint8_t > dataBytes
array of databytes
Definition FlexRayVFrReceiveMsgEx.h:295
Vector::BLF::FlexRayVFrReceiveMsgEx::channel
uint16_t channel
application channel
Definition FlexRayVFrReceiveMsgEx.h:37
Vector::BLF::FlexRayVFrReceiveMsgEx::reservedFlexRayVFrReceiveMsgEx2
std::vector< uint8_t > reservedFlexRayVFrReceiveMsgEx2
Definition FlexRayVFrReceiveMsgEx.h:298
Vector::BLF::FlexRayVFrReceiveMsgEx::frameFlags
uint32_t frameFlags
frame flags
Definition FlexRayVFrReceiveMsgEx.h:235
Vector::BLF::FlexRayVFrReceiveMsgEx::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition FlexRayVFrReceiveMsgEx.cpp:75
Vector::BLF::FlexRayVFrReceiveMsgEx::frameLengthNs
uint32_t frameLengthNs
length of frame in ns
Definition FlexRayVFrReceiveMsgEx.h:258
Vector::BLF::FlexRayVFrReceiveMsgEx::blfLogMask
uint16_t blfLogMask
only valid for frames. Every stands for one PDU. If set, the PDU must be extracted out of the frame....
Definition FlexRayVFrReceiveMsgEx.h:285
Vector::BLF::FlexRayVFrReceiveMsgEx::appParameter
uint32_t appParameter
TxRq, TxAck flags.
Definition FlexRayVFrReceiveMsgEx.h:242
Vector::BLF::FlexRayVFrReceiveMsgEx::data
uint32_t data
register flags
Definition FlexRayVFrReceiveMsgEx.h:196
Vector::BLF::FlexRayVFrReceiveMsgEx::clusterNo
uint32_t clusterNo
number of cluster
Definition FlexRayVFrReceiveMsgEx.h:81
Vector::BLF::FlexRayVFrReceiveMsgEx::pduOffset
uint16_t pduOffset
payload offset (position in a frame)
Definition FlexRayVFrReceiveMsgEx.h:274
Vector::BLF::FlexRayVFrReceiveMsgEx::tag
uint32_t tag
type of cc
Definition FlexRayVFrReceiveMsgEx.h:140
Vector::BLF::FlexRayVFrReceiveMsgEx::headerCrc2
uint16_t headerCrc2
header crc channel 2
Definition FlexRayVFrReceiveMsgEx.h:102
Vector::BLF::FlexRayVFrReceiveMsgEx::frameId1
uint16_t frameId1
for internal use
Definition FlexRayVFrReceiveMsgEx.h:266
Vector::BLF::FlexRayVFrReceiveMsgEx::write
void write(AbstractFile &os) override
Definition FlexRayVFrReceiveMsgEx.cpp:44
Vector::BLF::FlexRayVFrReceiveMsgEx::reservedFlexRayVFrReceiveMsgEx1
std::array< uint16_t, 13 > reservedFlexRayVFrReceiveMsgEx1
Definition FlexRayVFrReceiveMsgEx.h:288
Vector::BLF::FlexRayVFrReceiveMsgEx::channelMask
uint16_t channelMask
channel mask
Definition FlexRayVFrReceiveMsgEx.h:55
Vector::BLF::FlexRayVFrReceiveMsgEx::byteCount
uint16_t byteCount
byte count (not payload) of frame from CC receive buffer
Definition FlexRayVFrReceiveMsgEx.h:109
Vector::BLF::FlexRayVFrReceiveMsgEx::dir
uint16_t dir
dir flag (tx, rx)
Definition FlexRayVFrReceiveMsgEx.h:66
Vector::BLF::FlexRayVFrReceiveMsgEx::cycle
uint16_t cycle
current cycle
Definition FlexRayVFrReceiveMsgEx.h:126
Vector::BLF::FlexRayVFrReceiveMsgEx::dataCount
uint16_t dataCount
length of the data array (stretchy struct)
Definition FlexRayVFrReceiveMsgEx.h:119
Vector::BLF::FlexRayVFrReceiveMsgEx::frameCrc
uint32_t frameCrc
frame crc
Definition FlexRayVFrReceiveMsgEx.h:249
Vector::BLF::FlexRayVFrReceiveMsgEx::clientIndexFlexRayVFrReceiveMsgEx
uint32_t clientIndexFlexRayVFrReceiveMsgEx
clientindex of send node
Definition FlexRayVFrReceiveMsgEx.h:74