ptt-fhss
Bare-metal PTT firmware for nRF52840 with FHSS
Loading...
Searching...
No Matches
fhss.h
Go to the documentation of this file.
1
10#pragma once
11#include <stdint.h>
12
14#define FHSS_DWELL_MS 2u
15
17#define FHSS_CHANNELS 40u
18
20void fhss_init(void);
21
26uint8_t fhss_next_channel(void);
27
29void fhss_sync_tick(void);
30
35void fhss_set_slot(uint32_t s);
36
38uint32_t fhss_get_slot(void);
uint8_t fhss_next_channel(void)
Return the next channel in the hopping sequence and advance the slot.
Definition fhss.c:22
void fhss_init(void)
Reset the slot counter to zero.
Definition fhss.c:17
void fhss_set_slot(uint32_t s)
Force the slot counter to a specific value for RX synchronisation.
Definition fhss.c:45
uint32_t fhss_get_slot(void)
Return the current slot counter value.
Definition fhss.c:50
void fhss_sync_tick(void)
Advance the slot counter by one (receiver side, no packet received).
Definition fhss.c:40