![]() |
GM6000 Digital Heater Controller Build: 20 (Branch = develop)
SDX-1330
|
Defines an interval. More...
Defines an interval.
The application should treat this data struct as an opaque structure.
#include <PeriodicScheduler.h>
Public Member Functions | |
| Interval_T (IntervalCallbackFunc_T callbackFunc, ElapsedTime::Precision_T periodTime, void *context=nullptr) | |
| Constructor. | |
| IntervalCallbackFunc_T | getCallbackFunction () |
| Data accessor. | |
| ElapsedTime::Precision_T | getDuration () |
| Data accessor. | |
| void * | getContext () |
| Data accessor. | |
Public Attributes | |
| IntervalCallbackFunc_T | callbackFunc |
| Callback function pointer. | |
| void * | context |
| Optional Context for the callback. | |
| ElapsedTime::Precision_T | duration |
| The amount time in the Interval's period. | |
| ElapsedTime::Precision_T | timeMarker |
| Internal Use ONLY: Marks the last time the interval executed | |
|
inline |
Constructor.
|
inline |
Data accessor.
|
inline |
Data accessor.
|
inline |
Data accessor.
| IntervalCallbackFunc_T Cpl::System::PeriodicScheduler::Interval_T::callbackFunc |
Callback function pointer.
| void* Cpl::System::PeriodicScheduler::Interval_T::context |
Optional Context for the callback.
The callback function is required to 'understand' the actual type of the context pointer being passed to it.
| ElapsedTime::Precision_T Cpl::System::PeriodicScheduler::Interval_T::duration |
The amount time in the Interval's period.
| ElapsedTime::Precision_T Cpl::System::PeriodicScheduler::Interval_T::timeMarker |
Internal Use ONLY: Marks the last time the interval executed