All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_timer.h
Go to the documentation of this file.
1 
88 //--------------------------------------------------------------------------------------------------
98 #ifndef LEGATO_TIMER_INCLUDE_GUARD
99 #define LEGATO_TIMER_INCLUDE_GUARD
100 
101 
102 //--------------------------------------------------------------------------------------------------
106 //--------------------------------------------------------------------------------------------------
107 typedef struct le_timer* le_timer_Ref_t;
108 
109 
110 //--------------------------------------------------------------------------------------------------
117 //--------------------------------------------------------------------------------------------------
118 typedef void (*le_timer_ExpiryHandler_t)
119 (
120  le_timer_Ref_t timerRef
121 );
122 
123 
124 //--------------------------------------------------------------------------------------------------
131 //--------------------------------------------------------------------------------------------------
133 (
134  const char* nameStr
135 );
136 
137 
138 //--------------------------------------------------------------------------------------------------
145 //--------------------------------------------------------------------------------------------------
146 void le_timer_Delete
147 (
148  le_timer_Ref_t timerRef
149 );
150 
151 
152 //--------------------------------------------------------------------------------------------------
165 //--------------------------------------------------------------------------------------------------
167 (
168  le_timer_Ref_t timerRef,
169  le_timer_ExpiryHandler_t handlerRef
170 );
171 
172 
173 //--------------------------------------------------------------------------------------------------
186 //--------------------------------------------------------------------------------------------------
188 (
189  le_timer_Ref_t timerRef,
190  le_clk_Time_t interval
191 );
192 
193 
194 //--------------------------------------------------------------------------------------------------
208 //--------------------------------------------------------------------------------------------------
210 (
211  le_timer_Ref_t timerRef,
212  uint32_t repeatCount
213 );
214 
215 
216 //--------------------------------------------------------------------------------------------------
229 //--------------------------------------------------------------------------------------------------
231 (
232  le_timer_Ref_t timerRef,
233  void* contextPtr
234 );
235 
236 
237 //--------------------------------------------------------------------------------------------------
249 //--------------------------------------------------------------------------------------------------
251 (
252  le_timer_Ref_t timerRef
253 );
254 
255 
256 //--------------------------------------------------------------------------------------------------
269 //--------------------------------------------------------------------------------------------------
271 (
272  le_timer_Ref_t timerRef
273 );
274 
275 
276 //--------------------------------------------------------------------------------------------------
289 //--------------------------------------------------------------------------------------------------
291 (
292  le_timer_Ref_t timerRef
293 );
294 
295 
296 //--------------------------------------------------------------------------------------------------
309 //--------------------------------------------------------------------------------------------------
311 (
312  le_timer_Ref_t timerRef
313 );
314 
315 
316 //--------------------------------------------------------------------------------------------------
326 //--------------------------------------------------------------------------------------------------
327 void le_timer_Restart
328 (
329  le_timer_Ref_t timerRef
330 );
331 
332 
333 //--------------------------------------------------------------------------------------------------
340 //--------------------------------------------------------------------------------------------------
342 (
343  le_timer_Ref_t timerRef
344 );
345 
346 
347 #endif // LEGATO_TIMER_INCLUDE_GUARD
348 
le_result_t le_timer_SetRepeat(le_timer_Ref_t timerRef, uint32_t repeatCount)
le_result_t
Definition: le_basics.h:34
le_result_t le_timer_Start(le_timer_Ref_t timerRef)
void le_timer_Delete(le_timer_Ref_t timerRef)
le_timer_Ref_t le_timer_Create(const char *nameStr)
struct le_timer * le_timer_Ref_t
Definition: le_timer.h:107
Definition: le_clock.h:97
void * le_timer_GetContextPtr(le_timer_Ref_t timerRef)
le_result_t le_timer_SetInterval(le_timer_Ref_t timerRef, le_clk_Time_t interval)
le_result_t le_timer_Stop(le_timer_Ref_t timerRef)
bool le_timer_IsRunning(le_timer_Ref_t timerRef)
void le_timer_Restart(le_timer_Ref_t timerRef)
le_result_t le_timer_SetContextPtr(le_timer_Ref_t timerRef, void *contextPtr)
uint32_t le_timer_GetExpiryCount(le_timer_Ref_t timerRef)
le_result_t le_timer_SetHandler(le_timer_Ref_t timerRef, le_timer_ExpiryHandler_t handlerRef)
void(* le_timer_ExpiryHandler_t)(le_timer_Ref_t timerRef)
Definition: le_timer.h:119