17#ifndef MBED_TIMEREVENT_H
18#define MBED_TIMEREVENT_H
20#include "hal/ticker_api.h"
21#include "platform/mbed_toolchain.h"
22#include "platform/NonCopyable.h"
23#include "drivers/TickerDataClock.h"
38#if !defined(DOXYGEN_ONLY)
46 static void irq(uint32_t
id);
53 virtual void handler() = 0;
81 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0",
"Pass a chrono time_point, not an integer microsecond count. For example use `last_chrono_time + 5ms` rather than `last_us_time + 5000`.")
95 void insert(std::chrono::microseconds rel_time);
106 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0",
"Pass a chrono time_point, not an integer microsecond count. For example use `last_chrono_time + 5ms` rather than `last_us_time + 5000`.")
119 void insert_absolute(TickerDataClock::time_point timestamp);
Prevents generation of copy constructor and copy assignment operator in derived classes.
A partial implementation of a C++11 Clock representing a HAL ticker.
Base abstraction for timer interrupts.
uint32_t timestamp_t
Legacy format representing a timestamp in us.
uint64_t us_timestamp_t
A us timestamp stored in a 64 bit integer.
Ticker's event structure.