Vector BLF: MostReg.h Source File

Vector BLF

Loading...
Searching...
No Matches
MostReg.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/ObjectHeader2.h>
13
14#include <Vector/BLF/vector_blf_export.h>
15
16namespace Vector {
17namespace BLF {
18
26 struct VECTOR_BLF_EXPORT MostReg final : ObjectHeader2 {
27 MostReg();
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
53 uint8_t subType {};
54
56 uint8_t reservedMostReg {};
57
63 uint32_t handle {};
64
70 uint32_t offset {};
71
78 uint16_t chip {};
79
85 uint16_t regDataLen {};
86
92 std::array<uint8_t, 16> regData {};
93};
94
95}
96}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::MostReg::chip
uint16_t chip
chip id
Definition MostReg.h:78
Vector::BLF::MostReg::reservedMostReg
uint8_t reservedMostReg
Definition MostReg.h:56
Vector::BLF::MostReg::write
void write(AbstractFile &os) override
Definition MostReg.cpp:26
Vector::BLF::MostReg::channel
uint16_t channel
application channel
Definition MostReg.h:38
Vector::BLF::MostReg::handle
uint32_t handle
operation handle
Definition MostReg.h:63
Vector::BLF::MostReg::regData
std::array< uint8_t, 16 > regData
data bytes
Definition MostReg.h:92
Vector::BLF::MostReg::regDataLen
uint16_t regDataLen
number of bytes
Definition MostReg.h:85
Vector::BLF::MostReg::subType
uint8_t subType
read/write request/result
Definition MostReg.h:53
Vector::BLF::MostReg::offset
uint32_t offset
start address
Definition MostReg.h:70
Vector::BLF::MostReg::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition MostReg.cpp:38
Vector::BLF::MostReg::read
void read(AbstractFile &is) override
Definition MostReg.cpp:14