Create a realtime timer
#include <photon/realtime/RtTimer.h> RtTimer_t *RtTimerCreate( clockid_t clock_id, int prio, RtTimerCbF_t *cb, void *data );
typedef int RtTimerCbF_t( RtTimer_t *timer, void *data );
ph
This function creates a realtime timer. The timer is disabled when created; it isn't enabled until you call RtTimerSetTime().
A pointer to a RtTimer_t structure to be passed to the other routines dealing with realtime timers, or NULL if an error occurred.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
RtTimerDelete(), RtTimerGetTime(), RtTimerSetTime()
“Timers” in the Working with Code chapter of the Photon Programmer's Guide
timer_create() in the QNX Neutrino Library Reference