Vector BLF

Loading...
Searching...
No Matches
LinMessageDescriptor.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/BLF/AbstractFile.h>
10#include <Vector/BLF/LinSynchFieldEvent.h>
11#include <Vector/BLF/ObjectHeader.h>
12
13#include <Vector/BLF/vector_blf_export.h>
14
15 namespace Vector {
16 namespace BLF {
17
21 struct VECTOR_BLF_EXPORT LinMessageDescriptor : LinSynchFieldEvent {
22 void read(AbstractFile & is) override;
23 void write(AbstractFile & os) override;
24 uint32_t calculateObjectSize() const override;
25
33 uint16_t supplierId {};
34
46 uint16_t messageId {};
47
55 uint8_t nad {};
56
62 uint8_t id {};
63
69 uint8_t dlc {};
70
77 uint8_t checksumModel {};
78};
79
80}
81}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::LinMessageDescriptor
Definition LinMessageDescriptor.h:21
Vector::BLF::LinMessageDescriptor::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition LinMessageDescriptor.cpp:30
Vector::BLF::LinMessageDescriptor::supplierId
uint16_t supplierId
LIN Sub-Identifier - Supplier ID.
Definition LinMessageDescriptor.h:33
Vector::BLF::LinMessageDescriptor::write
void write(AbstractFile &os) override
Definition LinMessageDescriptor.cpp:20
Vector::BLF::LinMessageDescriptor::nad
uint8_t nad
LIN Sub-Identifier - NAD.
Definition LinMessageDescriptor.h:55
Vector::BLF::LinMessageDescriptor::dlc
uint8_t dlc
LIN DLC.
Definition LinMessageDescriptor.h:69
Vector::BLF::LinMessageDescriptor::checksumModel
uint8_t checksumModel
LIN checksum model.
Definition LinMessageDescriptor.h:77
Vector::BLF::LinMessageDescriptor::read
void read(AbstractFile &is) override
Definition LinMessageDescriptor.cpp:10
Vector::BLF::LinMessageDescriptor::messageId
uint16_t messageId
LIN Sub-Identifier - Message ID (16 bits).
Definition LinMessageDescriptor.h:46
Vector::BLF::LinSynchFieldEvent
Definition LinSynchFieldEvent.h:21