7 #include "AudioConfig.h"
9 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerAVR.h"
10 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerBase.h"
11 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerESP32.h"
12 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerESP8266.h"
13 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerMBED.h"
14 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerRP2040.h"
15 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerRenesas.h"
16 #include "AudioTools/CoreAudio/AudioTimer/AudioTimerSTM32.h"
17 #include "AudioTools/CoreAudio/AudioLogger.h"
39 bool begin(repeating_timer_callback_t callback_f, uint32_t time,
44 is_active = p_timer->begin(callback_f, time, unit);
49 return p_timer->end();
52 void setCallbackParameter(
void* obj) { p_timer->setCallbackParameter(obj); }
54 void* callbackParameter() {
return p_timer->callbackParameter(); }
56 virtual void setTimer(
int timer) { p_timer->setTimer(timer); }
58 virtual void setTimerFunction(TimerFunction
function = DirectTimerCallback) {
59 p_timer->setTimerFunction(
function);
62 void setIsSave(
bool is_save) { p_timer->
setIsSave(is_save); }
65 operator bool() {
return is_active; }
71 void*
object =
nullptr;
72 bool is_active =
false;
TimeUnit
Time Units.
Definition: AudioTypes.h:45