17#ifndef MBED_LOWPOWERTIMEOUT_H
18#define MBED_LOWPOWERTIMEOUT_H
20#include "platform/platform.h"
22#if DEVICE_LPTICKER || defined(DOXYGEN_ONLY)
24#include "drivers/LowPowerClock.h"
25#include "drivers/Timeout.h"
57 return LowPowerClock::time_point{TimeoutBase::scheduled_time().time_since_epoch()};
72 TimeoutBase::attach_absolute(std::forward<F>(func), TickerDataClock::time_point{abs_time.time_since_epoch()});
A C++11 Clock representing the HAL lp_ticker.
LowPowerClock::time_point scheduled_time() const
Return scheduled callback time.
void attach_absolute(F &&func, LowPowerClock::time_point abs_time)
Attach a function to be called by the Timeout, specifying the absolute time.
A Timeout is used to call a function at a point in the future.