Vector BLF

Loading...
Searching...
No Matches
AfdxLineStatus.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/ObjectHeader.h>
11
12#include <Vector/BLF/vector_blf_export.h>
13
14 namespace Vector {
15 namespace BLF {
16
18 struct VECTOR_BLF_EXPORT AfdxLineStatus final {
19 AfdxLineStatus() noexcept = default;
20 virtual ~AfdxLineStatus() noexcept = default;
21 AfdxLineStatus(const AfdxLineStatus &) = default;
22 AfdxLineStatus & operator=(const AfdxLineStatus &) = default;
23 AfdxLineStatus(AfdxLineStatus &&) = default;
24 AfdxLineStatus & operator=(AfdxLineStatus &&) = default;
25
27 virtual void read(AbstractFile & is);
28
30 virtual void write(AbstractFile & os);
31
33 virtual uint32_t calculateObjectSize() const;
34
42 uint16_t flags {};
43
52 uint8_t linkStatus {};
53
60 uint8_t ethernetPhy {};
61
68 uint8_t duplex {};
69
76 uint8_t mdi {};
77
84 uint8_t connector {};
85
92 uint8_t clockMode {};
93
101 uint8_t pairs {};
102
104 uint8_t reservedAfdxLineStatus1 {};
105
107 uint16_t reservedAfdxLineStatus2 {};
108
112 uint32_t bitrate {};
113};
114
115}
116}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::AfdxLineStatus::clockMode
uint8_t clockMode
Definition AfdxLineStatus.h:92
Vector::BLF::AfdxLineStatus::write
virtual void write(AbstractFile &os)
Definition AfdxLineStatus.cpp:25
Vector::BLF::AfdxLineStatus::flags
uint16_t flags
Definition AfdxLineStatus.h:42
Vector::BLF::AfdxLineStatus::linkStatus
uint8_t linkStatus
Definition AfdxLineStatus.h:52
Vector::BLF::AfdxLineStatus::read
virtual void read(AbstractFile &is)
Definition AfdxLineStatus.cpp:10
Vector::BLF::AfdxLineStatus::ethernetPhy
uint8_t ethernetPhy
Definition AfdxLineStatus.h:60
Vector::BLF::AfdxLineStatus::calculateObjectSize
virtual uint32_t calculateObjectSize() const
Definition AfdxLineStatus.cpp:39
Vector::BLF::AfdxLineStatus::connector
uint8_t connector
Definition AfdxLineStatus.h:84
Vector::BLF::AfdxLineStatus::bitrate
uint32_t bitrate
Definition AfdxLineStatus.h:112
Vector::BLF::AfdxLineStatus::reservedAfdxLineStatus1
uint8_t reservedAfdxLineStatus1
Definition AfdxLineStatus.h:104
Vector::BLF::AfdxLineStatus::reservedAfdxLineStatus2
uint16_t reservedAfdxLineStatus2
Definition AfdxLineStatus.h:107
Vector::BLF::AfdxLineStatus::pairs
uint8_t pairs
Definition AfdxLineStatus.h:101
Vector::BLF::AfdxLineStatus::mdi
uint8_t mdi
Definition AfdxLineStatus.h:76
Vector::BLF::AfdxLineStatus::duplex
uint8_t duplex
Definition AfdxLineStatus.h:68