![]() |
Embedded TCP/IP stack
4.1.0
|
Timer API
Detailed Description
An application can use the fnet_timer_get_ticks() function to get a number of ticks (periods, defined by the FNET_TIMER_PERIOD_MS) since the hardware timer startup.
Macros | |
| #define | FNET_TIMER_PERIOD_MS |
| Timer period in milliseconds (period of one timer tick). More... | |
| #define | FNET_TIMER_TICKS_IN_HOUR |
| Number of timer ticks in one hour. More... | |
| #define | FNET_TIMER_TICKS_IN_MIN |
| Number of timer ticks in one minute. More... | |
| #define | FNET_TIMER_TICKS_IN_SEC |
| Number of timer ticks in one second. More... | |
Typedefs | |
| typedef fnet_uint32_t | fnet_time_t |
| Unsigned integer type representing time uinits. It can be ticks, seconds or milliseconds. More... | |
Functions | |
| fnet_time_t | fnet_timer_get_ticks (void) |
| Gets the timer counter value in ticks. More... | |
| fnet_time_t | fnet_timer_get_seconds (void) |
| Gets the timer counter value in seconds. More... | |
| fnet_time_t | fnet_timer_get_ms (void) |
| Gets the timer counter value in milliseconds. More... | |
| fnet_time_t | fnet_timer_ms2ticks (fnet_time_t time_ms) |
| Converts milliseconds to timer ticks. More... | |
| fnet_time_t | fnet_timer_get_interval (fnet_time_t start, fnet_time_t end) |
| Calculates an interval between two moments in time. More... | |
| void | fnet_timer_delay (fnet_time_t delay_ticks) |
| Performs a delay for the given number of timer ticks. More... | |
| void | fnet_timer_poll (void) |
| SW Timer polling function. More... | |
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net
