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.
|
|
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...
|
| |
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.
◆ 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_channel | The channel with the updated RSSI measurement |
| old_busyness_metric | The EWMA value of the "channel busy" status before the last RSSI measurement |
Definition at line 304 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 201 of file tsch-cs.c.