Contiki-NG
Loading...
Searching...
No Matches
tsch-cs.h File Reference

Header file for TSCH adaptive channel selection. More...

#include "contiki.h"
#include <stdbool.h>

Go to the source code of this file.

Functions

void tsch_cs_adaptations_init (void)
 Initializes the TSCH hopping sequence selection module.
 
void tsch_cs_channel_stats_updated (uint8_t updated_channel, uint16_t old_busyness_metric)
 Signal the need to potentially update the TSCH hopping sequence.
 
bool tsch_cs_process (void)
 Potentially update the TSCH hopping sequence.
 

Detailed Description

Header file for TSCH adaptive channel selection.

Author
Atis Elsts atis..nosp@m.elst.nosp@m.s@bri.nosp@m.stol.nosp@m..ac.u.nosp@m.k

Definition in file tsch-cs.h.

Function Documentation

◆ tsch_cs_channel_stats_updated()

void tsch_cs_channel_stats_updated ( uint8_t updated_channel,
uint16_t old_busyness_metric )

Signal the need to potentially update the TSCH hopping sequence.

Parameters
updated_channelThe channel with the updated RSSI measurement
old_busyness_metricThe EWMA value of the "channel busy" status before the last RSSI measurement

Definition at line 304 of file tsch-cs.c.

References clock_seconds().

◆ tsch_cs_process()

bool tsch_cs_process ( void )

Potentially update the TSCH hopping sequence.

Returns
true if the hopping sequence was updated, false otherwise

Definition at line 201 of file tsch-cs.c.

References clock_seconds().