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.
awsTimer interface definition for MQTT client. More...
Go to the source code of this file.
Typedefs | |
| typedef struct awsTimer | awsTimer |
| The platform specific timer header that defines the awsTimer struct. | |
Functions | |
| bool | has_timer_expired (awsTimer *) |
| Check if a timer is expired. | |
| void | countdown_ms (awsTimer *, uint32_t) |
| Create a timer (milliseconds) | |
| void | countdown_sec (awsTimer *, uint32_t) |
| Create a timer (seconds) | |
| uint32_t | left_ms (awsTimer *) |
| Check the time remaining on a given timer. | |
| void | init_timer (awsTimer *) |
| Initialize a timer. | |
Detailed Description
awsTimer interface definition for MQTT client.
Defines an interface to timers that can be used by other system components. MQTT client requires timers to handle timeouts and MQTT keep alive. Starting point for porting the SDK to the timer hardware layer of a new platform.
Definition in file timer_interface.h.
Typedef Documentation
The platform specific timer header that defines the awsTimer struct.
awsTimer Type
Forward declaration of a timer struct. The definition of this struct is platform dependent. When porting to a new platform add this definition in "timer_<platform>.h" and include that file above.
Definition at line 50 of file timer_interface.h.
Function Documentation
| void countdown_ms | ( | awsTimer * | , |
| uint32_t | |||
| ) |
| void countdown_sec | ( | awsTimer * | , |
| uint32_t | |||
| ) |
| bool has_timer_expired | ( | awsTimer * | ) |
| void init_timer | ( | awsTimer * | ) |
| uint32_t left_ms | ( | awsTimer * | ) |
Generated on Tue Jul 12 2022 19:02:38 by
1.7.2