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.
Dependencies: mbed
TimerEvent Class Reference
[Drivers]
Base abstraction for timer interrupts. More...
#include <TimerEvent.h>
Inherits NonCopyable< TimerEvent >.
Inherited by Ticker.
Public Member Functions | |
| virtual | ~TimerEvent () |
| Destruction removes it... | |
Static Public Member Functions | |
| static void | irq (uint32_t id) |
| The handler registered with the underlying timer interrupt. | |
Protected Member Functions | |
| void | insert (timestamp_t timestamp) |
| Set relative timestamp of the internal event. | |
| void | insert_absolute (us_timestamp_t timestamp) |
| Set absolute timestamp of the internal event. | |
| void | remove () |
| Remove timestamp. | |
Private Member Functions | |
| MBED_DEPRECATED ("Invalid copy construction of a NonCopyable resource.") NonCopyable(const NonCopyable &) | |
| NonCopyable copy constructor. | |
| MBED_DEPRECATED ("Invalid copy assignment of a NonCopyable resource.") NonCopyable &operator | |
| NonCopyable copy assignment operator. | |
Detailed Description
Base abstraction for timer interrupts.
- Note:
- Synchronization level: Interrupt safe
Definition at line 31 of file TimerEvent.h.
Constructor & Destructor Documentation
| virtual ~TimerEvent | ( | ) | [virtual] |
Destruction removes it...
Member Function Documentation
| void insert | ( | timestamp_t | timestamp ) | [protected] |
Set relative timestamp of the internal event.
- Parameters:
-
timestamp event's us timestamp
- Warning:
- Do not insert more than one timestamp. The same event object is used for every insert/insert_absolute call.
- Ticker's present timestamp is used for reference. For timestamps from the past the event is scheduled after ticker's overflow. For reference
- See also:
- convert_timestamp
| void insert_absolute | ( | us_timestamp_t | timestamp ) | [protected] |
Set absolute timestamp of the internal event.
- Parameters:
-
timestamp event's us timestamp
- Warning:
- Do not insert more than one timestamp. The same event object is used for every insert/insert_absolute call.
| static void irq | ( | uint32_t | id ) | [static] |
The handler registered with the underlying timer interrupt.
- Parameters:
-
id Timer Event ID
| void remove | ( | ) | [protected] |
Remove timestamp.
Generated on Tue Jul 12 2022 13:34:18 by
1.7.2