InertiaSDK

Loading...
Searching...
No Matches
TOFConfig.h
1#pragma once
2
3#include "data/config/SensorSpecificSettings.h"
4#include "data/config/SamplerConfig.h"
5
6 namespace inertia
7{
8
9 enum TOFConfigVersion : uint8_t
10{
11 TOF_V0 = 0,
12 TOF_V1,
13 TOF_V2,
14 TOF_V3
15};
16
17 enum TOFZones : uint8_t
18{
19 TOF_ZONE_4x4 = 0,
20 TOF_ZONE_8x8 = 1
21};
22
23
24 struct INERTIA_API TOFConfiguration
25 : SpecificSensorSettings
26 , SamplerConfig
27{
28 TOFConfigVersion tofVersion;
29 uint8_t sensorCount;
30 uint8_t interlacingFactor;
31 TOFZones zones;
32
33 TOFConfiguration();
34 TOFConfiguration(uint8_t const* in, const unsigned offset, const unsigned _length);
35 TOFConfiguration(std::wstring const& argString);
36
37#ifdef WITH_BOOST_PROGRAM_OPTIONS
38 static const po::options_description GetOptionDescription();
39#endif
40
41 void GetBytes(std::vector<uint8_t>& out, const size_t bitfieldOffset) const override;
42 const std::pair<unsigned, Channel> GetChannel() const override;
43 const std::wstring ToString() const override;
44 const std::wstring ToSimpleString(uint16_t const globalRate) const;
45 double GetRangeFactor() const override;
46 unsigned GetResolution() const override;
47 unsigned GetMaxRate() const override;
48};
49
50}
inertia
Definition FlashCommands.h:6