@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 */
| 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 | /** |
nothing calls this directly
no test coverage detected