Rtos API example

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 )(const fhss_api_t *fhss_api)
 Stop timeout.
uint32_t(* fhss_get_remaining_slots )(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 67 of file fhss_config.h.


Field Documentation

Get remaining time of started timeout.

Definition at line 76 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 79 of file fhss_config.h.

Divide 1 microsecond resolution.

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

Definition at line 82 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)

Definition at line 70 of file fhss_config.h.

Stop timeout.

Definition at line 73 of file fhss_config.h.