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.
Fork of mbed-dev by
Diff: drivers/TimerEvent.h
- Revision:
- 182:a56a73fd2a6f
- Parent:
- 168:9672193075cf
--- a/drivers/TimerEvent.h Fri Feb 16 16:09:33 2018 +0000
+++ b/drivers/TimerEvent.h Tue Mar 20 16:56:18 2018 +0000
@@ -47,13 +47,31 @@
// The handler called to service the timer event of the derived class
virtual void handler() = 0;
- // insert relative timestamp in to linked list
+ /** Set relative timestamp of the internal event.
+ * @param timestamp event's us timestamp
+ *
+ * @warning
+ * Do not insert more than one timestamp.
+ * The same @a event object is used for every @a insert/insert_absolute call.
+ *
+ * @warning
+ * Ticker's present timestamp is used for reference. For timestamps
+ * from the past the event is scheduled after ticker's overflow.
+ * For reference @see convert_timestamp
+ */
void insert(timestamp_t timestamp);
- // insert absolute timestamp into linked list
+ /** Set absolute timestamp of the internal event.
+ * @param timestamp event's us timestamp
+ *
+ * @warning
+ * Do not insert more than one timestamp.
+ * The same @a event object is used for every @a insert/insert_absolute call.
+ */
void insert_absolute(us_timestamp_t timestamp);
- // remove from linked list, if in it
+ /** Remove timestamp.
+ */
void remove();
ticker_event_t event;
