2025-04-07 18:14:39 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#define RADIOLIB_STATIC_ONLY 1
|
|
|
|
|
#include <RadioLib.h>
|
2025-07-13 11:37:33 +02:00
|
|
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
2025-07-03 09:18:26 -07:00
|
|
|
#include <XiaoNrf52Board.h>
|
2025-07-13 11:37:33 +02:00
|
|
|
#include <helpers/radiolib/CustomSX1262Wrapper.h>
|
2025-06-17 23:12:10 +01:00
|
|
|
#include <helpers/AutoDiscoverRTCClock.h>
|
2025-04-07 18:14:39 +02:00
|
|
|
#include <helpers/ArduinoHelpers.h>
|
2025-05-23 21:24:02 +03:00
|
|
|
#include <helpers/sensors/EnvironmentSensorManager.h>
|
2025-04-07 18:14:39 +02:00
|
|
|
|
|
|
|
|
extern XiaoNrf52Board board;
|
|
|
|
|
extern WRAPPER_CLASS radio_driver;
|
2025-06-17 23:12:10 +01:00
|
|
|
extern AutoDiscoverRTCClock rtc_clock;
|
2025-05-23 21:24:02 +03:00
|
|
|
extern EnvironmentSensorManager sensors;
|
2025-04-07 18:14:39 +02:00
|
|
|
|
|
|
|
|
bool radio_init();
|
|
|
|
|
uint32_t radio_get_rng_seed();
|
|
|
|
|
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
|
|
|
|
|
void radio_set_tx_power(uint8_t dbm);
|
|
|
|
|
mesh::LocalIdentity radio_new_identity();
|