System.h
Go to the documentation of this file.
165 queueCallback([](void* param) { static_cast<ISystemReadyHandler*>(param)->onSystemReady(); }, readyHandler);
186 return queueCallback(reinterpret_cast<TaskCallback32>(callback), reinterpret_cast<uint32_t>(param));
void(* TaskCallback)(void *param)
Task callback function type, void* parameter.
Definition: System.h:42
void onReady(SystemReadyDelegate readyHandler)
Set handler for system ready event.
Definition: System.h:153
disable RF after deep-sleep wake up, just like modem sleep, there will be the smallest current...
Definition: System.h:82
CpuFrequency getCpuFrequency()
Get the CPU frequency.
Definition: System.h:138
TaskDelegate SystemReadyDelegate
Handler function for system ready.
Definition: System.h:50
RF_CAL or not after deep-sleep wake up, depends on init data byte 108.
Definition: System.h:79
static unsigned getMaxTaskCount()
Get maximum number of tasks seen on queue at any one time.
Definition: System.h:224
RF_CAL after deep-sleep wake up, there will be large current.
Definition: System.h:80
static unsigned getTaskCount()
Get number of tasks currently on queue.
Definition: System.h:210
static bool queueCallback(InterruptCallback callback)
Queue a deferred callback with no callback parameter.
Definition: System.h:192
static bool queueCallback(TaskCallback callback, void *param=nullptr)
Queue a deferred callback, with optional void* parameter.
Definition: System.h:184
void onReady(ISystemReadyHandler *readyHandler)
Set handler for system ready event.
Definition: System.h:162
void setCpuFrequency(CpuFrequency freq)
Set the CPU frequency.
Definition: System.h:130
no RF_CAL after deep-sleep wake up, there will only be small current.
Definition: System.h:81
Interface class implented by classes to support on-ready callback.
Definition: System.h:55
void(* TaskCallback32)(uint32_t param)
Task callback function type, uint32_t parameter.
Definition: System.h:37