le_timer.h
Go to the documentation of this file.
1 
93 //--------------------------------------------------------------------------------------------------
102 //--------------------------------------------------------------------------------------------------
103 
104 #ifndef LEGATO_TIMER_INCLUDE_GUARD
105 #define LEGATO_TIMER_INCLUDE_GUARD
106 
107 
108 //--------------------------------------------------------------------------------------------------
112 //--------------------------------------------------------------------------------------------------
113 typedef struct le_timer* le_timer_Ref_t;
114 
115 
116 //--------------------------------------------------------------------------------------------------
123 //--------------------------------------------------------------------------------------------------
124 typedef void (*le_timer_ExpiryHandler_t)
125 (
126  le_timer_Ref_t timerRef
127 );
128 
129 
130 //--------------------------------------------------------------------------------------------------
137 //--------------------------------------------------------------------------------------------------
139 (
140  const char* nameStr
141 );
142 
143 
144 //--------------------------------------------------------------------------------------------------
151 //--------------------------------------------------------------------------------------------------
152 void le_timer_Delete
153 (
154  le_timer_Ref_t timerRef
155 );
156 
157 
158 //--------------------------------------------------------------------------------------------------
171 //--------------------------------------------------------------------------------------------------
173 (
174  le_timer_Ref_t timerRef,
175  le_timer_ExpiryHandler_t handlerFunc
176 );
177 
178 
179 //--------------------------------------------------------------------------------------------------
192 //--------------------------------------------------------------------------------------------------
194 (
195  le_timer_Ref_t timerRef,
196  le_clk_Time_t interval
197 );
198 
199 
200 //--------------------------------------------------------------------------------------------------
213 //--------------------------------------------------------------------------------------------------
215 (
216  le_timer_Ref_t timerRef,
217  size_t interval
218 );
219 
220 
221 //--------------------------------------------------------------------------------------------------
235 //--------------------------------------------------------------------------------------------------
237 (
238  le_timer_Ref_t timerRef,
239  uint32_t repeatCount
240 );
241 
242 
243 //--------------------------------------------------------------------------------------------------
256 //--------------------------------------------------------------------------------------------------
258 (
259  le_timer_Ref_t timerRef,
260  void* contextPtr
261 );
262 
263 
264 //--------------------------------------------------------------------------------------------------
276 //--------------------------------------------------------------------------------------------------
278 (
279  le_timer_Ref_t timerRef
280 );
281 
282 
283 //--------------------------------------------------------------------------------------------------
296 //--------------------------------------------------------------------------------------------------
298 (
299  le_timer_Ref_t timerRef
300 );
301 
302 
303 //--------------------------------------------------------------------------------------------------
316 //--------------------------------------------------------------------------------------------------
318 (
319  le_timer_Ref_t timerRef
320 );
321 
322 
323 //--------------------------------------------------------------------------------------------------
336 //--------------------------------------------------------------------------------------------------
338 (
339  le_timer_Ref_t timerRef
340 );
341 
342 
343 //--------------------------------------------------------------------------------------------------
353 //--------------------------------------------------------------------------------------------------
354 void le_timer_Restart
355 (
356  le_timer_Ref_t timerRef
357 );
358 
359 
360 //--------------------------------------------------------------------------------------------------
367 //--------------------------------------------------------------------------------------------------
369 (
370  le_timer_Ref_t timerRef
371 );
372 
373 
374 #endif // LEGATO_TIMER_INCLUDE_GUARD
375 
le_result_t le_timer_SetRepeat(le_timer_Ref_t timerRef, uint32_t repeatCount)
le_result_t
Definition: le_basics.h:35
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:113
Definition: le_clock.h:92
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_SetHandler(le_timer_Ref_t timerRef, le_timer_ExpiryHandler_t handlerFunc)
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)
void(* le_timer_ExpiryHandler_t)(le_timer_Ref_t timerRef)
Definition: le_timer.h:125
le_result_t le_timer_SetMsInterval(le_timer_Ref_t timerRef, size_t interval)