InertiaSDK

Loading...
Searching...
No Matches
SamplerConfig.h
1#pragma once
2
3#include "data/config/AbstractConfig.h"
4
5 namespace inertia
6{
7
8 struct INERTIA_API SamplerConfig
9{
10 public:
11 uint8_t instanceMask;
12 uint8_t samplingChannel;
13 uint8_t wordSize;
14
15 bool enableSampling;
16 bool enableTransmit;
17 bool enableLogging;
18 bool adoptMod;
19 uint32_t mod;
20
21 virtual const std::pair<unsigned, Channel> GetChannel() const;
22
23 protected:
24 SamplerConfig();
25 SamplerConfig(uint8_t const* in);
26 SamplerConfig(std::wstring const& argString);
27
28#ifdef WITH_BOOST_PROGRAM_OPTIONS
29 static const po::options_description GetOptionDescription();
30#endif
31
32 void GetBytes(std::vector<uint8_t>& out) const;
33 const std::wstring ToString() const;
34 const std::wstring ToSimpleString(uint16_t const globalRate) const;
35
36 virtual double GetRangeFactor() const = 0;
37 virtual unsigned GetResolution() const = 0;
38 virtual unsigned GetMaxRate() const = 0;
39};
40
41}
inertia
Definition FlashCommands.h:6