2025-03-21 18:57:12 +11:00
|
|
|
#pragma once
|
|
|
|
|
|
2025-03-27 19:34:16 +11:00
|
|
|
#define RADIOLIB_STATIC_ONLY 1
|
|
|
|
|
#include <RadioLib.h>
|
2025-07-13 11:37:33 +02:00
|
|
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
2025-10-11 21:52:48 +02:00
|
|
|
#include <HeltecV3Board.h>
|
2025-07-13 11:37:33 +02:00
|
|
|
#include <helpers/radiolib/CustomSX1262Wrapper.h>
|
2025-03-27 21:28:06 +11:00
|
|
|
#include <helpers/AutoDiscoverRTCClock.h>
|
2025-05-03 13:14:03 +10:00
|
|
|
#include <helpers/SensorManager.h>
|
2025-05-22 12:07:45 +00:00
|
|
|
#include <helpers/sensors/EnvironmentSensorManager.h>
|
2025-05-19 14:16:55 +10:00
|
|
|
#ifdef DISPLAY_CLASS
|
|
|
|
|
#include <helpers/ui/SSD1306Display.h>
|
2025-08-08 20:01:31 +10:00
|
|
|
#include <helpers/ui/MomentaryButton.h>
|
2025-05-19 14:16:55 +10:00
|
|
|
#endif
|
2025-03-21 18:57:12 +11:00
|
|
|
|
|
|
|
|
extern HeltecV3Board board;
|
2025-03-27 19:34:16 +11:00
|
|
|
extern WRAPPER_CLASS radio_driver;
|
2025-03-27 21:28:06 +11:00
|
|
|
extern AutoDiscoverRTCClock rtc_clock;
|
2025-05-22 12:07:45 +00:00
|
|
|
extern EnvironmentSensorManager sensors;
|
2025-03-21 18:57:12 +11:00
|
|
|
|
2025-05-19 14:16:55 +10:00
|
|
|
#ifdef DISPLAY_CLASS
|
|
|
|
|
extern DISPLAY_CLASS display;
|
2025-08-08 20:01:31 +10:00
|
|
|
extern MomentaryButton user_btn;
|
2025-05-19 14:16:55 +10:00
|
|
|
#endif
|
|
|
|
|
|
2025-03-21 18:57:12 +11:00
|
|
|
bool radio_init();
|
2025-03-27 19:34:16 +11:00
|
|
|
uint32_t radio_get_rng_seed();
|
|
|
|
|
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
|
2026-01-03 20:35:14 +01:00
|
|
|
void radio_set_tx_power(int8_t dbm);
|
2025-03-27 19:34:16 +11:00
|
|
|
mesh::LocalIdentity radio_new_identity();
|