17#ifndef MBED_LOWPOWERCLOCK_H
18#define MBED_LOWPOWERCLOCK_H
22#include "hal/lp_ticker_api.h"
41 using duration = std::chrono::microseconds;
42 using rep = duration::rep;
43 using period = duration::period;
44 using time_point = std::chrono::time_point<LowPowerClock>;
45 static const bool is_steady =
true;
48 static time_point
now()
A C++11 Clock representing the HAL lp_ticker.
static void unlock()
Unlock the clock, allowing it to stop during power saving; dummy for API compatibility with HighResCl...
static time_point now()
Read the current time.
static void lock()
Lock the clock to ensure it stays running; dummy for API compatibility with HighResClock.
const ticker_data_t * get_lp_ticker_data(void)
Get low power ticker's data.
us_timestamp_t ticker_read_us(const ticker_data_t *const ticker)
Read the current (absolute) ticker's timestamp.