Class template implementing an extended OS Timer with 64-bit microsecond times and delegate callback support. More...
#include <Timer.h>
Inheritance diagram for OsTimer64Api< TimerClass >:
Collaboration diagram for OsTimer64Api< TimerClass >:
Public Types | |
using | Clock = OsTimerApi::Clock |
using | TickType = uint64_t |
using | TimeType = uint64_t |
Public Member Functions | |
OsTimer64Api () | |
~OsTimer64Api () | |
bool | isArmed () const |
TickType | ticks () const |
void | setCallback (TimerCallback callback, void *arg) |
void | setCallback (TimerDelegate delegateFunction) |
void | setInterval (TickType interval) |
TickType | getInterval () const |
void | arm (bool repeating) |
void | disarm () |
![]() | |
CallbackTimerApi () | |
CallbackTimerApi (const CallbackTimerApi &)=delete | |
String | name () const |
String | toString () const |
operator String () const | |
Static Public Member Functions | |
static constexpr const char * | typeName () |
static constexpr TickType | minTicks () |
static constexpr TickType | maxTicks () |
![]() | |
static constexpr const char * | typeName () |
Protected Member Functions | |
void | longTick () |
Detailed Description
template<class TimerClass>
class OsTimer64Api< TimerClass >
Class template implementing an extended OS Timer with 64-bit microsecond times and delegate callback support.
Member Typedef Documentation
◆ Clock
template<class TimerClass >
using OsTimer64Api< TimerClass >::Clock = OsTimerApi::Clock |
◆ TickType
template<class TimerClass >
using OsTimer64Api< TimerClass >::TickType = uint64_t |
◆ TimeType
template<class TimerClass >
using OsTimer64Api< TimerClass >::TimeType = uint64_t |
Constructor & Destructor Documentation
◆ OsTimer64Api()
template<class TimerClass >
|
inline |
◆ ~OsTimer64Api()
template<class TimerClass >
|
inline |
Member Function Documentation
◆ arm()
template<class TimerClass >
|
inline |
◆ disarm()
template<class TimerClass >
|
inline |
◆ getInterval()
template<class TimerClass >
|
inline |
◆ isArmed()
template<class TimerClass >
|
inline |
◆ maxTicks()
template<class TimerClass >
|
inlinestaticconstexpr |
◆ minTicks()
template<class TimerClass >
|
inlinestaticconstexpr |
◆ setCallback() [1/2]
template<class TimerClass >
|
inline |
◆ setCallback() [2/2]
template<class TimerClass >
|
inline |
◆ ticks()
template<class TimerClass >
|
inline |
◆ typeName()
template<class TimerClass >
|
inlinestaticconstexpr |
Member Data Documentation
◆ arg
template<class TimerClass >
void* OsTimer64Api< TimerClass >::arg = nullptr |
◆ func
template<class TimerClass >
TimerCallback OsTimer64Api< TimerClass >::func = nullptr |
The documentation for this class was generated from the following file: