InertiaSDK

Loading...
Searching...
No Matches
AccelExtConfig.h
1#pragma once
2
3#include "data/config/AccelConfig.h"
4
5 namespace inertia
6{
7
8 struct INERTIA_API AccelConfigExt
9 : AccelConfig
10{
11 uint8_t instance; // 0 represents the first sensor of this type
12 uint8_t samplingChannel;
13 uint8_t wordSize;
14 uint8_t revision;
15 uint8_t channelPositionMask; // e.g. axis numbers that are used
16
17 AccelConfigExt();
18 AccelConfigExt(uint8_t const* in);
19 AccelConfigExt(std::wstring const& argString);
20
21#ifdef WITH_BOOST_PROGRAM_OPTIONS
22 static const po::options_description GetOptionDescription();
23#endif
24
25 static unsigned GetLength();
26 void GetBytes(std::vector<uint8_t>& out) const override;
27 ConfigType GetConfigType() const override;
28 const std::pair<unsigned, Channel> GetChannel() const;
29 const std::wstring ToString() const override;
30 const std::wstring ToSimpleString(uint16_t const globalRate) const;
31};
32
33}
inertia
Definition FlashCommands.h:6
inertia::ConfigType
ConfigType
Definition ConfigChannel.h:7