arduino-audio-tools
|
Repeating Timer functions for repeated execution: Plaease use the typedef TimerAlarmRepeating. By default we use a new GPT timer. You can also request 1 AGT timer by calling setTimer(1);. More...
#include <AudioTimerRenesas.h>
Public Member Functions | |
bool | begin (const my_repeating_timer_callback_t callback_f, uint32_t time, TimeUnit unit=MS) override |
void * | callbackParameter () |
bool | end () |
ends the timer and if necessary the task | |
void | setCallbackParameter (void *obj) |
virtual void | setIsSave (bool is_save) |
Not used. | |
void | setTimer (int timer) override |
Selects the timer type: 0=GPT and 1=AGT. | |
virtual void | setTimerFunction (TimerFunction function=DirectTimerCallback) |
Static Public Member Functions | |
static void | staticCallback (timer_callback_args_t *ptr) |
Protected Member Functions | |
bool | startAGTTimer (float rate) |
bool | startGPTTimer (float rate) |
const char * | toString (TimeUnit unit) |
Protected Attributes | |
FspTimer | audio_timer |
my_repeating_timer_callback_t | instanceCallback = nullptr |
void * | object = nullptr |
bool | timer_active = false |
uint8_t | timer_type = 0 |
Repeating Timer functions for repeated execution: Plaease use the typedef TimerAlarmRepeating. By default we use a new GPT timer. You can also request 1 AGT timer by calling setTimer(1);.
|
inlineoverridevirtual |
Starts the alarm timer
Implements TimerAlarmRepeatingDriverBase.
|
inlinevirtual |
ends the timer and if necessary the task
Reimplemented from TimerAlarmRepeatingDriverBase.
Selects the timer type: 0=GPT and 1=AGT.
Reimplemented from TimerAlarmRepeatingDriverBase.