Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
timeouts.h File Reference
Timer implementations. More...
Go to the source code of this file.
Data Structures | |
struct | lwip_cyclic_timer |
This struct contains information about a stack-internal timer function that has to be called at a defined interval. More... | |
Typedefs | |
typedef void(* | lwip_cyclic_timer_handler )(void) |
Function prototype for a stack-internal timer function that has to be called at a defined interval. | |
typedef void(* | sys_timeout_handler )(void *arg) |
Function prototype for a timeout callback function. | |
Functions | |
void | sys_timeouts_init (void) |
Initialize this module. | |
void | sys_timeout_debug (u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name) |
Create a one-shot timer (aka timeout). | |
Variables | |
struct lwip_cyclic_timer | lwip_cyclic_timers [] |
This array contains all stack-internal cyclic timers. |
Detailed Description
Timer implementations.
Definition in file timeouts.h.
Typedef Documentation
typedef void(* lwip_cyclic_timer_handler)(void) |
Function prototype for a stack-internal timer function that has to be called at a defined interval.
Definition at line 61 of file timeouts.h.
typedef void(* sys_timeout_handler)(void *arg) |
Function prototype for a timeout callback function.
Register such a function using sys_timeout().
- Parameters:
-
arg Additional argument to pass to the function - set up by sys_timeout()
Definition at line 84 of file timeouts.h.
Function Documentation
void sys_timeout_debug | ( | u32_t | msecs, |
sys_timeout_handler | handler, | ||
void * | arg, | ||
const char * | handler_name | ||
) |
Create a one-shot timer (aka timeout).
Timeouts are processed in the following cases:
- while waiting for a message using sys_timeouts_mbox_fetch()
- by calling sys_check_timeouts() (NO_SYS==1 only)
- Parameters:
-
msecs time in milliseconds after that the timer should expire handler callback function to call when msecs have elapsed arg argument to pass to the callback function
void sys_timeouts_init | ( | void | ) |
Initialize this module.
Definition at line 175 of file lwip_timeouts.c.
Variable Documentation
struct lwip_cyclic_timer lwip_cyclic_timers[] |
This array contains all stack-internal cyclic timers.
To get the number of timers, use LWIP_ARRAYSIZE()
Definition at line 71 of file lwip_timeouts.c.
Generated on Tue Jul 12 2022 11:03:06 by
