Mbed OS Reference
Loading...
Searching...
No Matches
ticker_interface_t Struct Reference

Ticker's interface structure - required API for a ticker. More...

#include <ticker_api.h>

Data Fields

void(* init )(void)
 Init function. More...
 
uint32_t(* read )(void)
 Read function. More...
 
void(* disable_interrupt )(void)
 Disable interrupt function. More...
 
void(* clear_interrupt )(void)
 Clear interrupt function. More...
 
void(* set_interrupt )(timestamp_t timestamp)
 Set interrupt function. More...
 
void(* fire_interrupt )(void)
 Fire interrupt right-away. More...
 
void(* free )(void)
 Disable function. More...
 
const ticker_info_t *(* get_info )(void)
 Return info about this ticker's implementation. More...
 
bool runs_in_deep_sleep
 Whether ticker operates in deep sleep. More...
 

Detailed Description

Ticker's interface structure - required API for a ticker.

Definition at line 61 of file ticker_api.h.

Field Documentation

◆ init

void(* init) (void)

Init function.

Definition at line 62 of file ticker_api.h.

◆ read

uint32_t(* read) (void)

Read function.

Definition at line 63 of file ticker_api.h.

◆ disable_interrupt

void(* disable_interrupt) (void)

Disable interrupt function.

Definition at line 64 of file ticker_api.h.

◆ clear_interrupt

void(* clear_interrupt) (void)

Clear interrupt function.

Definition at line 65 of file ticker_api.h.

◆ set_interrupt

void(* set_interrupt) (timestamp_t timestamp)

Set interrupt function.

Definition at line 66 of file ticker_api.h.

◆ fire_interrupt

void(* fire_interrupt) (void)

Fire interrupt right-away.

Definition at line 67 of file ticker_api.h.

◆ free

void(* free) (void)

Disable function.

Definition at line 68 of file ticker_api.h.

◆ get_info

const ticker_info_t *(* get_info) (void)

Return info about this ticker's implementation.

Definition at line 69 of file ticker_api.h.

◆ runs_in_deep_sleep

bool runs_in_deep_sleep

Whether ticker operates in deep sleep.

Definition at line 70 of file ticker_api.h.