Vector BLF

Loading...
Searching...
No Matches
WlanStatistic.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
22 struct VECTOR_BLF_EXPORT WlanStatistic final : ObjectHeader {
23 WlanStatistic();
24
25 void read(AbstractFile & is) override;
26 void write(AbstractFile & os) override;
27 uint32_t calculateObjectSize() const override;
28
34 uint16_t channel {};
35
37 enum Flags : uint16_t {
39 ValidRxTxCounter = 0x01,
40
42 ValidErrorCounter = 0x02
43 };
44
46 uint16_t flags {};
47
51 uint32_t rxPacketCount {};
52
56 uint32_t rxByteCount {};
57
61 uint32_t txPacketCount {};
62
66 uint32_t txByteCount {};
67
71 uint32_t collisionCount {};
72
76 uint32_t errorCount {};
77
79 uint32_t reservedWlanStatistic {};
80};
81
82}
83}
Vector::BLF::AbstractFile
Definition AbstractFile.h:19
Vector::BLF::WlanStatistic::collisionCount
uint32_t collisionCount
Definition WlanStatistic.h:71
Vector::BLF::WlanStatistic::reservedWlanStatistic
uint32_t reservedWlanStatistic
Definition WlanStatistic.h:79
Vector::BLF::WlanStatistic::calculateObjectSize
uint32_t calculateObjectSize() const override
Definition WlanStatistic.cpp:41
Vector::BLF::WlanStatistic::txByteCount
uint32_t txByteCount
Definition WlanStatistic.h:66
Vector::BLF::WlanStatistic::rxByteCount
uint32_t rxByteCount
Definition WlanStatistic.h:56
Vector::BLF::WlanStatistic::errorCount
uint32_t errorCount
Definition WlanStatistic.h:76
Vector::BLF::WlanStatistic::rxPacketCount
uint32_t rxPacketCount
Definition WlanStatistic.h:51
Vector::BLF::WlanStatistic::channel
uint16_t channel
application channel
Definition WlanStatistic.h:34
Vector::BLF::WlanStatistic::read
void read(AbstractFile &is) override
Definition WlanStatistic.cpp:14
Vector::BLF::WlanStatistic::txPacketCount
uint32_t txPacketCount
Definition WlanStatistic.h:61
Vector::BLF::WlanStatistic::flags
uint16_t flags
Definition WlanStatistic.h:46
Vector::BLF::WlanStatistic::write
void write(AbstractFile &os) override
Definition WlanStatistic.cpp:28
Vector::BLF::WlanStatistic::Flags
Flags
Definition WlanStatistic.h:37
Vector::BLF::WlanStatistic::ValidRxTxCounter
@ ValidRxTxCounter
Definition WlanStatistic.h:39
Vector::BLF::WlanStatistic::ValidErrorCounter
@ ValidErrorCounter
Definition WlanStatistic.h:42