arduino-audio-tools
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TimerAlarmRepeatingDriverRenesas Class Reference

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>

Inheritance diagram for TimerAlarmRepeatingDriverRenesas:
TimerAlarmRepeatingDriverBase

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
 

Detailed Description

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);.

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

bool begin ( const my_repeating_timer_callback_t  callback_f,
uint32_t  time,
TimeUnit  unit = MS 
)
inlineoverridevirtual

Starts the alarm timer

Implements TimerAlarmRepeatingDriverBase.


The documentation for this class was generated from the following file: