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-09-03 19:38:38 +02:00
|
|
|
#include <T114Board.h>
|
2025-03-27 21:28:06 +11:00
|
|
|
#include <helpers/AutoDiscoverRTCClock.h>
|
2026-02-05 13:35:04 +00:00
|
|
|
#include <helpers/radiolib/CustomSX1262Wrapper.h>
|
|
|
|
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
2026-02-01 09:00:01 +01:00
|
|
|
#include <helpers/sensors/EnvironmentSensorManager.h>
|
2025-05-09 20:30:11 -07:00
|
|
|
#include <helpers/sensors/LocationProvider.h>
|
2025-09-04 13:25:10 +01:00
|
|
|
|
2025-05-19 14:16:55 +10:00
|
|
|
#ifdef DISPLAY_CLASS
|
2025-09-04 13:25:10 +01:00
|
|
|
#include <helpers/ui/MomentaryButton.h>
|
|
|
|
|
#ifdef HELTEC_T114_WITH_DISPLAY
|
|
|
|
|
#include <helpers/ui/ST7789Display.h>
|
|
|
|
|
#else
|
2025-09-05 17:59:59 +01:00
|
|
|
#include "helpers/ui/NullDisplayDriver.h"
|
2025-09-04 13:25:10 +01:00
|
|
|
#endif
|
2025-05-19 14:16:55 +10:00
|
|
|
#endif
|
2025-05-09 20:30:11 -07:00
|
|
|
|
2025-03-21 18:57:12 +11:00
|
|
|
extern T114Board 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;
|
2026-02-05 13:35:04 +00:00
|
|
|
extern EnvironmentSensorManager sensors;
|
2025-03-21 18:57:12 +11:00
|
|
|
|
2025-05-19 14:16:55 +10:00
|
|
|
#ifdef DISPLAY_CLASS
|
2026-02-05 13:35:04 +00:00
|
|
|
extern DISPLAY_CLASS display;
|
|
|
|
|
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();
|