Remembers current task period and its time constraint.
More...
#include <cgnuino.h>
|
| CgnPeriod () |
| Constructor.
|
|
void | set (String, uint32_t=0) |
| Sets current task period and its time limitation. More...
|
|
bool | is (String) |
| Checks whether the current task period is s. More...
|
|
bool | expire () |
| Checks whether the current task period expired its time limitation.
|
|
String | get () |
| Shows current task period.
|
|
uint32_t | until () |
| Shows the time limitation of the current task period.
|
|
bool CgnPeriod::is |
( |
String |
s | ) |
|
- Parameters
-
s | Name of the candidate task period. |
- Examples:
- Period.ino.
void CgnPeriod::set |
( |
String |
s, |
|
|
uint32_t |
l = 0 |
|
) |
| |
- Parameters
-
s | Name of the current task period. |
l | Maximum length of current task period in [ms]. |
- Examples:
- Period.ino.
The documentation for this class was generated from the following files: