STATUS my_callback_func(uint8, void*, void*)
Defines | |
| #define | TMR_CREATE(name) |
| Create a software timer. | |
| #define | WAIT_FOREVER 0xFFFF |
| Timeout period. | |
| #define | NO_WAIT 0 |
| Timeout period. | |
| #define | TMR_PERIODIC 1 |
| Software timer mode. | |
| #define | TMR_ONE_SHOT 2 |
| Software timer mode. | |
Functions | |
| void | TMR_Start (HANDLE *ph, uint16 tout, STATUS(*pfxn)(uint8, void *, void *), uint8 evt, void *parg1, void *parg2, uint8 mode) |
| Timer start function. | |
| void | TMR_ReStart (HANDLE *ph) |
| Timer re-start function. | |
| void | TMR_Stop (HANDLE *ph) |
| Timer stop function. | |
| uint32 | TMR_GetTicks (void) |
| Return system ticks. | |
|
|
Timeout period. When a system call timeout parameter has this value the system call won't wait the resource but will return immediately even if the resource isn't avaible. |
|
|
Create a software timer. This macro creates a timer
|
|
|
Software timer mode. The started SW timer will run in one shot mode. Once the timeout will expire and the call-back function will be executed. The timer won't be restarted automaticaly.
|
|
|
Software timer mode. The started SW timer will run in periodic mode. Once the timeout will expire and the call-back function will be executed the task will be re-started again automaticaly. |
|
|
Timeout period. When a system call's timeout parameter has this value the system call won't return until the resource will be avaible. |
|
|
Return system ticks. This function returns elapsed system ticks since system startup.
|
|
|
Timer re-start function. This function re-starts a software timer. Be careful to apply this system call only on an already started timer. Its functionality is very similar to TMR_Start() function but it is faster.
|
|
||||||||||||||||||||||||||||||||
|
Timer start function. This function starts a software timer. A valid call back function must be passed to the function. The timer is re-started if it was already started. Timers can be one shot or periodic.
|
|
|
Timer stop function. This function stops a software timer without executin its call-back function.
|
1.4.3