InertiaSDK

Loading...
Searching...
No Matches
LoggingConfig.h
1#pragma once
2
3#include "data/config/LegacyConfig.h"
4
5 namespace inertia
6{
7
9 enum LoggingType
10{
11 LOGGING_PER_FRAME_NUMBER = 0,
12 LOGGING_PER_TIMESTAMP = 1,
13 LOGGING_PER_SAMPLE_NUMBER = 5
14};
15
16 struct INERTIA_API LoggingConfig
17 : LegacyConfig
18{
19 bool autoStart;
20 LoggingType type;
21 uint8_t frameSize;
22 uint8_t monitoringHistoryLength;
23
24 LoggingConfig();
25 LoggingConfig(uint8_t const* in);
26 LoggingConfig(std::wstring const& argString);
27
28#ifdef WITH_BOOST_PROGRAM_OPTIONS
29 static const po::options_description GetOptionDescription();
30#endif
31
32 ConfigType GetConfigType() const override;
33 static unsigned GetLength();
34 void GetBytes(std::vector<uint8_t>& out) const override;
35 const std::wstring ToString() const override;
36};
37
38}
inertia
Definition FlashCommands.h:6
inertia::LoggingType
LoggingType
Definition LoggingConfig.h:10
inertia::ConfigType
ConfigType
Definition ConfigChannel.h:7