Defines the interfaces for Timer Management Services.
◆ wiced_timer_callback_t
Function prototype for the timer call back.
- Parameters
-
[in] | cb_params | :Timer callback function |
◆ wiced_timer_type_e
Defines the AIROC timer types.
These timers are system tick driven and a systick is 1 millisecond.So the minimum timer resolution supported is 1 millisecond
Enumerator |
---|
WICED_MILLI_SECONDS_TIMER | Single shot milliseconds timer.
|
WICED_SECONDS_TIMER | Single shot seconds timer.
|
WICED_MILLI_SECONDS_PERIODIC_TIMER | Periodic milliseconds timer.
|
WICED_SECONDS_PERIODIC_TIMER | Periodic seconds timer.
|
◆ wiced_init_timer()
Initializes the timer.
- Parameters
-
[in] | p_timer | :Pointer to the timer structure |
[in] | p_timer_cb | :Timer callback function to be invoked on timer expiry |
[in] | cb_arg | :Parameter to be passed to the timer callback function which gets invoked on timer expiry,if any |
[in] | timer_type | :Shows if the timer is milliseconds or seconds, and if periodic or not |
- Returns
- wiced_result_t
◆ wiced_start_timer()
Starts a timer.
- Note
- : Starting an already running timer restarts the timer timeout
- Parameters
-
- Returns
- wiced_result_t
◆ wiced_stop_timer()
Stops a timer.
- Parameters
-
[in] | p_timer | :Pointer to the timer structure |
- Returns
- wiced_result_t
◆ wiced_is_timer_in_use()
Checks if a timer is in use.
- Parameters
-
[in] | p_timer | :Pointer to the timer structure |
- Returns
- TRUE if the timer is in use and FALSE if the timer is not in use
◆ wiced_deinit_timer()
Deinitialize a timer instance and stops the timer if it is running.
- Parameters
-
[in] | p_timer | :Pointer to the timer |
- Returns
- wiced_result_t