Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

fhss_timer Struct Reference

fhss_timer Struct Reference

Struct fhss_timer defines interface between FHSS and FHSS platform timer. More...

#include <fhss_config.h>

Data Fields

int(* fhss_timer_start )(uint32_t, void(*fhss_timer_callback)(const fhss_api_t *fhss_api, uint16_t), const fhss_api_t *fhss_api)
 Start timeout (1us).
int(* fhss_timer_stop )(void(*fhss_timer_callback)(const fhss_api_t *fhss_api, uint16_t), const fhss_api_t *fhss_api)
 Stop timeout.
uint32_t(* fhss_get_remaining_slots )(void(*fhss_timer_callback)(const fhss_api_t *fhss_api, uint16_t), const fhss_api_t *fhss_api)
 Get remaining time of started timeout.
uint32_t(* fhss_get_timestamp )(const fhss_api_t *fhss_api)
 Get timestamp since initialization of driver.
uint8_t fhss_resolution_divider
 Divide 1 microsecond resolution.

Detailed Description

Struct fhss_timer defines interface between FHSS and FHSS platform timer.

Application must implement FHSS timer driver which is then used by FHSS with this interface.

Definition at line 131 of file fhss_config.h.


Field Documentation

uint32_t(* fhss_get_remaining_slots)(void(*fhss_timer_callback)(const fhss_api_t *fhss_api, uint16_t), const fhss_api_t *fhss_api)

Get remaining time of started timeout.

Definition at line 139 of file fhss_config.h.

uint32_t(* fhss_get_timestamp)(const fhss_api_t *fhss_api)

Get timestamp since initialization of driver.

Overflow of 32-bit counter is allowed (1us)

Definition at line 142 of file fhss_config.h.

Divide 1 microsecond resolution.

E.g. to use 64us resolution, use fhss_resolution_divider = 64

Definition at line 145 of file fhss_config.h.

int(* fhss_timer_start)(uint32_t, void(*fhss_timer_callback)(const fhss_api_t *fhss_api, uint16_t), const fhss_api_t *fhss_api)

Start timeout (1us).

Timer must support multiple simultaneous timeouts

Definition at line 133 of file fhss_config.h.

int(* fhss_timer_stop)(void(*fhss_timer_callback)(const fhss_api_t *fhss_api, uint16_t), const fhss_api_t *fhss_api)

Stop timeout.

Definition at line 136 of file fhss_config.h.