Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RtosTimer Class Reference
[Rtos]
The RtosTimer class allow creating and and controlling of timer functions in the system. More...
#include <RtosTimer.h>
Public Member Functions | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Replaced with RtosTimer(Callback<void()>, os_timer_type)") RtosTimer(void(*func)(void const *argument) | |
Create timer. | |
osStatus | start (uint32_t millisec) |
Start the timer. |
Detailed Description
The RtosTimer class allow creating and and controlling of timer functions in the system.
A timer function is called when a time period expires whereby both on-shot and periodic timers are possible. A timer can be started, restarted, or stopped.
Timers are handled in the thread osTimerThread. Callback functions run under control of this thread and may use CMSIS-RTOS API calls.
Definition at line 41 of file RtosTimer.h.
Member Function Documentation
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Replaced with RtosTimer(Callback<void()>, os_timer_type)" | |||
) | const |
Create timer.
- Parameters:
-
func function to be executed by this timer. type osTimerOnce for one-shot or osTimerPeriodic for periodic behaviour. (default: osTimerPeriodic) argument argument to the timer call back function. (default: NULL)
Generated on Tue Jul 12 2022 17:35:15 by
