42 typedef void (*ChangeOut)(
void * context,
int timerIndex);
43 typedef void (*Tick)(
void * context,
int ticks);
62 void setCallbacks(
void * context, ChangeOut changeOut, Tick tick) {
64 m_changeOut = changeOut;
68 void runAutoTick(
int freq,
int updatesPerSec);
74 void write(
int reg, uint8_t value);
75 uint8_t read(
int reg);
77 bool getOut(
int timerIndex) {
return m_timer[timerIndex].out; }
78 bool getGate(
int timerIndex) {
return m_timer[timerIndex].gate; }
80 void setGate(
int timerIndex,
bool value);
82 TimerInfo
const & timerInfo(
int timerIndex) {
return m_timer[timerIndex]; }
88 static void autoTickTask(
void * pvParameters);
90 void changeOut(
int timer,
bool value);
92 void unsafeTick(
int ticks);
96 SemaphoreHandle_t m_mutex;
100 ChangeOut m_changeOut;
104 TaskHandle_t m_taskHandle;
105 int32_t m_autoTickFreq;
106 int32_t m_updatesPerSec;
This file is the all in one include file. Application can just include this file to use FabGL library...