![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Event Scheduler specific part for the HF::Scheduling::Entry
.
More...
#include <event_scheduling.h>
Public Member Functions | |
Interval (uint32_t _start, uint32_t _end, uint32_t _repeat) | |
Constructor. More... | |
uint32_t | first () const |
Get the initial value for the next_run entry attribute. More... | |
uint32_t | step () const |
Get the step between executions. More... | |
bool | active (uint32_t _time) const |
Check if entry is active. More... | |
uint16_t | size () const |
Number bytes needed to serialize the message. More... | |
uint16_t | pack (Common::ByteArray &array, uint16_t offset=0) const |
Write the object on to a ByteArray so it can be sent over the network. More... | |
uint16_t | unpack (const Common::ByteArray &array, uint16_t offset=0) |
Read a message from a ByteArray. More... | |
Data Fields | |
uint32_t | start |
Start Date. More... | |
uint32_t | end |
End Date. More... | |
uint32_t | repeat |
Repeat interval (in seconds). More... | |
Static Public Attributes | |
static constexpr uint16_t | min_size |
Minimum pack/unpack required data size. | |
Event Scheduler specific part for the HF::Scheduling::Entry
.
Definition at line 70 of file event_scheduling.h.
|
inline |
Constructor.
[in] | _start | timestamp for the start of the event in seconds. |
[in] | _end | timestamp for the end of the event in seconds.. |
[in] | _repeat | repetition interval in seconds. |
Definition at line 83 of file event_scheduling.h.
|
inline |
Check if entry is active.
[in] | _time | current time. |
true | if the entry is active. |
false | otherwise. |
Definition at line 117 of file event_scheduling.h.
|
inline |
Get the initial value for the next_run entry attribute.
Definition at line 94 of file event_scheduling.h.
References start.
uint16_t HF::Core::Scheduling::Event::Interval::pack | ( | Common::ByteArray & | array, |
uint16_t | offset = 0 |
||
) | const |
Write the object on to a ByteArray so it can be sent over the network.
The buffer passed in MUST have enough size to hold the serialized object, e.g.,
[in,out] | array | ByteArray reference to write the object to. |
[in] | offset | offset to start writing to. |
|
inline |
Number bytes needed to serialize the message.
Definition at line 128 of file event_scheduling.h.
References min_size.
|
inline |
Get the step between executions.
Definition at line 104 of file event_scheduling.h.
References repeat.
uint16_t HF::Core::Scheduling::Event::Interval::unpack | ( | const Common::ByteArray & | array, |
uint16_t | offset = 0 |
||
) |
Read a message from a ByteArray.
[in] | array | ByteArray reference to read the message from. |
[in] | offset | offset to start reading from. |
uint32_t HF::Core::Scheduling::Event::Interval::end |
uint32_t HF::Core::Scheduling::Event::Interval::repeat |
Repeat interval (in seconds).
Definition at line 74 of file event_scheduling.h.
Referenced by step().
uint32_t HF::Core::Scheduling::Event::Interval::start |