20#ifndef MBED_LPTICKER_API_H
21#define MBED_LPTICKER_API_H
27#include "hal/ticker_api.h"
81typedef void (*ticker_irq_handler_type)(
const ticker_data_t *
const);
void lp_ticker_init(void)
Initialize the low power ticker.
void lp_ticker_fire_interrupt(void)
Set pending interrupt that should be fired right away.
ticker_irq_handler_type set_lp_ticker_irq_handler(ticker_irq_handler_type ticker_irq_handler)
Set low power ticker IRQ handler.
const ticker_info_t * lp_ticker_get_info(void)
Get frequency and counter bits of this ticker.
void lp_ticker_disable_interrupt(void)
Disable low power ticker interrupt.
const ticker_data_t * get_lp_ticker_data(void)
Get low power ticker's data.
void lp_ticker_free(void)
Deinitialize the lower power ticker.
void lp_ticker_set_interrupt(timestamp_t timestamp)
Set interrupt for specified timestamp.
void lp_ticker_irq_handler(void)
The wrapper for ticker_irq_handler, to pass lp ticker's data.
uint32_t lp_ticker_read(void)
Read the current tick.
void lp_ticker_clear_interrupt(void)
Clear the low power ticker interrupt.
void ticker_irq_handler(const ticker_data_t *const ticker)
IRQ handler that goes through the events to trigger overdue events.
uint32_t timestamp_t
Legacy format representing a timestamp in us.
Information about the ticker implementation.