InertiaSDK

Loading...
Searching...
No Matches
SchedulerSettings.h
1#pragma once
2
3#include "data/config/SensorSpecificSettings.h"
4
5 namespace inertia
6{
7
8 enum SchedulerWakeupRecurrence : uint8_t {
9 SCHEDULER_INTERVAL_SECONDS = 0,
10 SCHEDULER_INTERVAL_MINUTES,
11 SCHEDULER_INTERVAL_HOURS,
12 SCHEDULER_INTERVAL_DAYS
13};
14
15 struct INERTIA_API SchedulerSettings
16 : SpecificSensorSettings
17{
18 bool enableScheduler;
19 SchedulerWakeupRecurrence wakeupIntervalRecurrence;
20 uint8_t statusWakeupInterval;
21 uint8_t statusWakeupDuration;
22 uint8_t reserved;
23
24 SchedulerSettings();
25 SchedulerSettings(uint8_t const* in, const unsigned offset, const unsigned _length);
26 SchedulerSettings(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 size_t bitfieldOffset) const override;
33 const std::wstring ToString() const override;
34 const std::wstring ToSimpleString() const;
35};
36
37}
inertia
Definition FlashCommands.h:6