20#ifndef MBED_US_TICKER_API_H
21#define MBED_US_TICKER_API_H
24#include "hal/ticker_api.h"
124typedef void (*ticker_irq_handler_type)(
const ticker_data_t *
const);
void ticker_irq_handler(const ticker_data_t *const ticker)
IRQ handler that goes through the events to trigger overdue events.
void us_ticker_clear_interrupt(void)
Clear us ticker interrupt.
uint32_t() us_ticker_read(void)
Read the current counter.
void us_ticker_irq_handler(void)
The wrapper for ticker_irq_handler, to pass us ticker's data.
void us_ticker_fire_interrupt(void)
Set pending interrupt that should be fired right away.
void us_ticker_disable_interrupt(void)
Disable us ticker interrupt.
void us_ticker_free(void)
Deinitialize the us ticker.
void us_ticker_init(void)
Initialize the ticker.
const ticker_info_t * us_ticker_get_info(void)
Get frequency and counter bits of this ticker.
ticker_irq_handler_type set_us_ticker_irq_handler(ticker_irq_handler_type ticker_irq_handler)
Set ticker IRQ handler.
void us_ticker_set_interrupt(timestamp_t timestamp)
Set interrupt for specified timestamp.
const ticker_data_t * get_us_ticker_data(void)
Get ticker's data.
uint32_t timestamp_t
Legacy format representing a timestamp in us.
Information about the ticker implementation.