DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

Timer.h File Reference

Detailed Description

NVIDIA DriveWorks API: Timer

Description: This file defines the timer interface.

Definition in file Timer.h.

Go to the source code of this file.

Typedefs

typedef struct dwTimerObject const * dwConstTimerHandle_t
 Handle represents a const Timer object. More...
 
typedef struct dwTimeSourceObject const * dwConstTimeSourceHandle_t
 Handle represents a const TimeSource object. More...
 
typedef struct dwTimerObject * dwTimerHandle_t
 Handle represents a Timer object. More...
 
typedef void(* dwTimerWork) (void *ptr)
 dwTimerWork represents a function pointer whose return value type is void and input type is void* . More...
 
typedef struct dwTimeSourceObject * dwTimeSourceHandle_t
 Handle represents a TimeSource object. More...
 

Functions

DW_API_PUBLIC dwStatus dwTimer_cancelAsync (dwTimerHandle_t const timer)
 Asynchronously cancels all scheduled work associated with this timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_cancelSync (dwTimerHandle_t const timer)
 Synchronously cancels all scheduled work associated with this timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_initializeFromSource (dwTimerHandle_t *const timer, char8_t const *const timerName, dwTimeSourceHandle_t const source)
 Creates and initializes a DW Timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_release (dwTimerHandle_t const timer)
 Release the timer instance. More...
 
DW_API_PUBLIC dwStatus dwTimer_scheduleTaskOneShot (dwTimerWork const task, void *const clientData, dwTime_t const startTime, dwTimerHandle_t const timer)
 Scheduled a task to be run at a future time (non-recurring) More...
 
DW_API_PUBLIC dwStatus dwTimer_scheduleTaskRecurring (dwTimerWork const task, void *const clientData, dwTime_t const startTime, dwTime_t const period, dwTimerHandle_t const timer)
 Scheduled a task to be run at a future time (recurring) More...