Contiki-NG
Functions
tsch-cs.c File Reference

    Source file for TSCH adaptive channel selection
More...

#include "tsch.h"
#include "tsch-stats.h"
#include "tsch-cs.h"
#include "sys/log.h"

Go to the source code of this file.

Functions

void tsch_cs_adaptations_init (void)
 Initializes the TSCH hopping sequence selection module.
 
bool tsch_cs_process (void)
 Potentially update the TSCH hopping sequence. More...
 
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. More...
 

Detailed Description

    Source 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.c.

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 296 of file tsch-cs.c.

◆ 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 193 of file tsch-cs.c.