Vector BLF: AfdxLineStatus.h Source File

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
14namespace Vector {
15namespace 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
Definition: AfdxLineStatus.h:18