InertiaSDK

Loading...
Searching...
No Matches
RTCConfig.h
1#pragma once
2
3#include "data/config/SamplingConfig.h"
4
5 namespace inertia
6{
7
9 enum RTCConfigVersion {
10 RTC_V0 = 0,
11 RTC_V1,
12 RTC_V2,
13 RTC_V3
14};
15
16 struct INERTIA_API RTCConfig
17 : SamplingConfig
18{
19 bool externalTrigger;
20 RTCConfigVersion rtcVersion;
21 uint8_t samplingChannel;
22
23 RTCConfig();
24 RTCConfig(uint8_t const* in);
25 RTCConfig(std::wstring const& argString);
26
27#ifdef WITH_BOOST_PROGRAM_OPTIONS
28 static const po::options_description GetOptionDescription();
29#endif
30
31 ConfigType GetConfigType() const override;
32 static unsigned GetLength();
33 void GetBytes(std::vector<uint8_t>& out) const override;
34 const std::wstring ToString() const override;
35 const std::wstring ToSimpleString(uint16_t const globalRate) const;
36 const std::pair<unsigned, Channel> GetChannel() const;
37};
38
39}
inertia
Definition FlashCommands.h:6
inertia::RTCConfigVersion
RTCConfigVersion
Definition RTCConfig.h:9
inertia::ConfigType
ConfigType
Definition ConfigChannel.h:7