Kenji Arai / TYBLE16_mbedlized_os5_several_examples_1st

Dependencies:   nRF51_Vdd TextLCD BME280

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 126 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 135 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 138 of file fhss_config.h.

Divide 1 microsecond resolution.

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

Definition at line 141 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 129 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 132 of file fhss_config.h.