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.
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
~TimerEvent | ( | ) | [virtual] |
Destruction removes it...
Definition at line 38 of file TimerEvent.cpp.
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
Definition at line 43 of file TimerEvent.cpp.
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.
Definition at line 47 of file TimerEvent.cpp.
void irq | ( | uint32_t | id ) | [static] |
The handler registered with the underlying timer interrupt.
- Parameters:
-
id Timer Event ID
Definition at line 33 of file TimerEvent.cpp.
void remove | ( | ) | [protected] |
Remove timestamp.
Definition at line 51 of file TimerEvent.cpp.
Generated on Tue Jul 12 2022 14:27:12 by
