Vector BLF: LinMessage.h Source File

Vector BLF

Loading...
Searching...
No Matches
LinMessage.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
16namespace Vector {
17namespace BLF {
18
26 struct VECTOR_BLF_EXPORT LinMessage final : ObjectHeader {
27 LinMessage();
28
29 void read(AbstractFile & is) override;
30 void write(AbstractFile & os) override;
31 uint32_t calculateObjectSize() const override;
32
38 uint16_t channel {};
39
45 uint8_t id {};
46
52 uint8_t dlc {};
53
57 std::array<uint8_t, 8> data {};
58
63 uint8_t fsmId {};
64
69 uint8_t fsmState {};
70
74 uint8_t headerTime {};
75
79 uint8_t fullTime {};
80
84 uint16_t crc {};
85
94 uint8_t dir {};
95
97 uint8_t reservedLinMessage1 {};
98
100 uint32_t reservedLinMessage2 {};
101};
102
103}
104}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinMessage::reservedLinMessage2
uint32_t reservedLinMessage2
Definition LinMessage.h:100
Vector::BLF::LinMessage::channel
uint16_t channel
application channel
Definition LinMessage.h:38
Vector::BLF::LinMessage::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinMessage.cpp:46
Vector::BLF::LinMessage::fsmState
uint8_t fsmState
Definition LinMessage.h:69
Vector::BLF::LinMessage::read
void read(AbstractFile &is) override
Definition LinMessage.cpp:14
Vector::BLF::LinMessage::fullTime
uint8_t fullTime
Definition LinMessage.h:79
Vector::BLF::LinMessage::data
std::array< uint8_t, 8 > data
Definition LinMessage.h:57
Vector::BLF::LinMessage::reservedLinMessage1
uint8_t reservedLinMessage1
Definition LinMessage.h:97
Vector::BLF::LinMessage::crc
uint16_t crc
Definition LinMessage.h:84
Vector::BLF::LinMessage::dlc
uint8_t dlc
LIN DLC.
Definition LinMessage.h:52
Vector::BLF::LinMessage::fsmId
uint8_t fsmId
Definition LinMessage.h:63
Vector::BLF::LinMessage::headerTime
uint8_t headerTime
Definition LinMessage.h:74
Vector::BLF::LinMessage::dir
uint8_t dir
direction
Definition LinMessage.h:94
Vector::BLF::LinMessage::write
void write(AbstractFile &os) override
Definition LinMessage.cpp:30