Vector BLF

Loading...
Searching...
No Matches
LinCrcError.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
27 struct VECTOR_BLF_EXPORT LinCrcError final : ObjectHeader {
28 LinCrcError();
29
30 void read(AbstractFile & is) override;
31 void write(AbstractFile & os) override;
32 uint32_t calculateObjectSize() const override;
33
39 uint16_t channel {};
40
46 uint8_t id {};
47
53 uint8_t dlc {};
54
58 std::array<uint8_t, 8> data {};
59
64 uint8_t fsmId {};
65
70 uint8_t fsmState {};
71
75 uint8_t headerTime {};
76
80 uint8_t fullTime {};
81
85 uint16_t crc {};
86
95 uint8_t dir {};
96
98 uint8_t reservedLinCrcError1 {};
99
101 uint32_t reservedLinCrcError2 {};
102};
103
104}
105}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinCrcError::write
void write(AbstractFile &os) override
Definition LinCrcError.cpp:30
Vector::BLF::LinCrcError::fsmState
uint8_t fsmState
Definition LinCrcError.h:70
Vector::BLF::LinCrcError::channel
uint16_t channel
application channel
Definition LinCrcError.h:39
Vector::BLF::LinCrcError::fsmId
uint8_t fsmId
Definition LinCrcError.h:64
Vector::BLF::LinCrcError::dir
uint8_t dir
direction
Definition LinCrcError.h:95
Vector::BLF::LinCrcError::data
std::array< uint8_t, 8 > data
Definition LinCrcError.h:58
Vector::BLF::LinCrcError::fullTime
uint8_t fullTime
Definition LinCrcError.h:80
Vector::BLF::LinCrcError::headerTime
uint8_t headerTime
Definition LinCrcError.h:75
Vector::BLF::LinCrcError::reservedLinCrcError2
uint32_t reservedLinCrcError2
Definition LinCrcError.h:101
Vector::BLF::LinCrcError::crc
uint16_t crc
Definition LinCrcError.h:85
Vector::BLF::LinCrcError::dlc
uint8_t dlc
LIN DLC.
Definition LinCrcError.h:53
Vector::BLF::LinCrcError::reservedLinCrcError1
uint8_t reservedLinCrcError1
Definition LinCrcError.h:98
Vector::BLF::LinCrcError::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinCrcError.cpp:46
Vector::BLF::LinCrcError::read
void read(AbstractFile &is) override
Definition LinCrcError.cpp:14