Rtos API example

Embed: (wiki syntax)

« Back to documentation index

net_fhss.h File Reference

net_fhss.h File Reference

FHSS API. More...

Go to the source code of this file.

Functions

fhss_api_tns_fhss_create (const fhss_configuration_t *fhss_configuration, const fhss_timer_t *fhss_timer, fhss_statistics_t *fhss_statistics)
 Creates FHSS API instance which will be registered to software MAC.
int ns_fhss_configuration_set (fhss_api_t *fhss_api, const fhss_synch_configuration_t *fhss_synch_configuration)
 Set synchronization time configuration for FHSS network.
int ns_fhss_delete (fhss_api_t *fhss_api)
 Deletes a FHSS API instance and removes it from software MAC.

Detailed Description

FHSS API.

Definition in file net_fhss.h.


Function Documentation

int ns_fhss_configuration_set ( fhss_api_t fhss_api,
const fhss_synch_configuration_t fhss_synch_configuration 
)

Set synchronization time configuration for FHSS network.

Should be only called from Border router.

Parameters:
fhss_apiFHSS instance.
fhss_synch_configurationFHSS synchronization time configuration.
Returns:
0 on success, -1 on fail.
fhss_api_t* ns_fhss_create ( const fhss_configuration_t fhss_configuration,
const fhss_timer_t fhss_timer,
fhss_statistics_t fhss_statistics 
)

Creates FHSS API instance which will be registered to software MAC.

Parameters:
fhss_configurationBasic FHSS configuration.
fhss_timerFHSS platform timer interface and configuration.
fhss_statisticsFHSS statistics storage.
Returns:
New FHSS instance if successful, NULL otherwise.
int ns_fhss_delete ( fhss_api_t fhss_api )

Deletes a FHSS API instance and removes it from software MAC.

Parameters:
fhss_apiFHSS instance.
Returns:
0 on success, -1 on fail.