MCPcopy Create free account
hub / github.com/SmingHub/Sming / setCallback

Method setCallback

Sming/Core/Timer.h:250–256  ·  view source on GitHub ↗

@brief Set timer trigger function using Delegate callback method * @param delegateFunction Function to be called on timer trigger * @note Don't use this for interrupt timers */

Source from the content-addressed store, hash-verified

248 * @note Don't use this for interrupt timers
249 */
250 void setCallback(TimerDelegate delegateFunction)
251 {
252 // Always disarm before setting the callback
253 this->stop();
254 TimerApi::setCallback(delegateFunction);
255 this->callbackSet = bool(delegateFunction);
256 }
257};
258
259/**

Callers

nothing calls this directly

Calls 2

setCallbackFunction · 0.85
stopMethod · 0.45

Tested by

no test coverage detected