le_timer.h
Go to the documentation of this file.
1 
88 //--------------------------------------------------------------------------------------------------
97 //--------------------------------------------------------------------------------------------------
98 
99 #ifndef LEGATO_TIMER_INCLUDE_GUARD
100 #define LEGATO_TIMER_INCLUDE_GUARD
101 
102 
103 //--------------------------------------------------------------------------------------------------
107 //--------------------------------------------------------------------------------------------------
108 typedef struct le_timer* le_timer_Ref_t;
109 
110 
111 //--------------------------------------------------------------------------------------------------
118 //--------------------------------------------------------------------------------------------------
119 typedef void (*le_timer_ExpiryHandler_t)
120 (
121  le_timer_Ref_t timerRef
122 );
123 
124 
125 //--------------------------------------------------------------------------------------------------
132 //--------------------------------------------------------------------------------------------------
134 (
135  const char* nameStr
136 );
137 
138 
139 //--------------------------------------------------------------------------------------------------
146 //--------------------------------------------------------------------------------------------------
147 void le_timer_Delete
148 (
149  le_timer_Ref_t timerRef
150 );
151 
152 
153 //--------------------------------------------------------------------------------------------------
166 //--------------------------------------------------------------------------------------------------
168 (
169  le_timer_Ref_t timerRef,
170  le_timer_ExpiryHandler_t handlerRef
171 );
172 
173 
174 //--------------------------------------------------------------------------------------------------
187 //--------------------------------------------------------------------------------------------------
189 (
190  le_timer_Ref_t timerRef,
191  le_clk_Time_t interval
192 );
193 
194 
195 //--------------------------------------------------------------------------------------------------
209 //--------------------------------------------------------------------------------------------------
211 (
212  le_timer_Ref_t timerRef,
213  uint32_t repeatCount
214 );
215 
216 
217 //--------------------------------------------------------------------------------------------------
230 //--------------------------------------------------------------------------------------------------
232 (
233  le_timer_Ref_t timerRef,
234  void* contextPtr
235 );
236 
237 
238 //--------------------------------------------------------------------------------------------------
250 //--------------------------------------------------------------------------------------------------
252 (
253  le_timer_Ref_t timerRef
254 );
255 
256 
257 //--------------------------------------------------------------------------------------------------
270 //--------------------------------------------------------------------------------------------------
272 (
273  le_timer_Ref_t timerRef
274 );
275 
276 
277 //--------------------------------------------------------------------------------------------------
290 //--------------------------------------------------------------------------------------------------
292 (
293  le_timer_Ref_t timerRef
294 );
295 
296 
297 //--------------------------------------------------------------------------------------------------
310 //--------------------------------------------------------------------------------------------------
312 (
313  le_timer_Ref_t timerRef
314 );
315 
316 
317 //--------------------------------------------------------------------------------------------------
327 //--------------------------------------------------------------------------------------------------
328 void le_timer_Restart
329 (
330  le_timer_Ref_t timerRef
331 );
332 
333 
334 //--------------------------------------------------------------------------------------------------
341 //--------------------------------------------------------------------------------------------------
343 (
344  le_timer_Ref_t timerRef
345 );
346 
347 
348 #endif // LEGATO_TIMER_INCLUDE_GUARD
349 
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:108
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_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:120
le_result_t le_timer_SetHandler(le_timer_Ref_t timerRef, le_timer_ExpiryHandler_t handlerRef)