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-03-21 18:57:12 +11:00
|
|
|
#include <helpers/StationG2Board.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-03-21 18:57:12 +11:00
|
|
|
|
2025-06-02 14:10:10 -07:00
|
|
|
#ifdef DISPLAY_CLASS
|
|
|
|
|
#include <helpers/ui/SH1106Display.h>
|
2025-08-17 11:57:38 +02:00
|
|
|
#include <helpers/ui/MomentaryButton.h>
|
2025-06-02 14:10:10 -07:00
|
|
|
#endif
|
|
|
|
|
|
2025-03-21 18:57:12 +11:00
|
|
|
extern StationG2Board 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-03 13:14:03 +10:00
|
|
|
extern SensorManager sensors;
|
2025-03-21 18:57:12 +11:00
|
|
|
|
2025-06-02 14:10:10 -07:00
|
|
|
#ifdef DISPLAY_CLASS
|
|
|
|
|
extern DISPLAY_CLASS display;
|
2025-08-17 11:57:38 +02:00
|
|
|
extern MomentaryButton user_btn;
|
2025-06-02 14:10:10 -07: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);
|
|
|
|
|
void radio_set_tx_power(uint8_t dbm);
|
|
|
|
|
mesh::LocalIdentity radio_new_identity();
|