libpowermon 1.00
PowerMon Access Library
Loading...
Searching...
No Matches
powermon_schedule.h
1/* Copyright (C) 2020 - 2024, Thornwave Labs Inc
2 * Written by Razvan Turiac <razvan.turiac@thornwave.com>
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5 * documentation files (the “Software”), to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
7 * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8 *
9 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10 * Attribution shall be given to Thornwave Labs Inc. and shall be made visible to the final user.
11 *
12 * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
13 * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
15 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16*/
17
18#ifndef _POWERMON_SCHEDULE_H
19#define _POWERMON_SCHEDULE_H
20
21
22#include <stdint.h>
23#include <stddef.h>
24
25
30{
31public:
33
34 bool operator==(const PowermonSchedule &rhs) const;
35
36 const char* getName(void) const;
37 void setName(const char* name);
38
39 uint64_t getDescriptor(void) const;
40 void setDescriptor(uint64_t descriptor);
41
42 uint32_t getStartHour(void) const;
43 void setStartHour(uint32_t value);
44
45 uint32_t getStartMinute(void) const;
46 void setStartMinute(uint32_t value);
47
48 uint32_t getEndHour(void) const;
49 void setEndHour(uint32_t value);
50
51 uint32_t getEndMinute(void) const;
52 void setEndMinute(uint32_t value);
53
54 bool isRepeatDOW(void) const;
55 void setRepeatDOW(void);
56
57 bool isRepeatDOM(void) const;
58 void setRepeatDOM(void);
59
60 uint8_t getRepeat(void) const;
61 void setRepeat(uint8_t value);
62
63private:
64 uint8_t mRawSchedule[24];
65};
66
67
68#endif
PowermonSchedule is a structure containing one PowerMon schedule (timer)
Definition powermon_schedule.h:30