From 1cce443ef1bdd8b6f490f66524953a36b35e60c8 Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Thu, 9 Jan 2020 14:37:58 +0000 Subject: [PATCH] define interface for implicit/explicit mode support --- src/modules/SX126x/SX126x.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/modules/SX126x/SX126x.h b/src/modules/SX126x/SX126x.h index 24b47e63..9d771e42 100644 --- a/src/modules/SX126x/SX126x.h +++ b/src/modules/SX126x/SX126x.h @@ -789,6 +789,20 @@ class SX126x: public PhysicalLayer { \returns Expected time-on-air in microseconds. */ uint32_t getTimeOnAir(size_t len); + + /*! + \brief Set implicit header mode for future reception/transmission. + + \returns \ref status_codes + */ + int16_t implicitHeader(); + + /*! + \brief Set explicit header mode for future reception/transmission. + + \returns \ref status_codes + */ + int16_t explicitHeader(); #ifndef RADIOLIB_GODMODE protected: #endif @@ -822,6 +836,7 @@ class SX126x: public PhysicalLayer { int16_t setFrequencyRaw(float freq); int16_t setOptimalHiPowerPaConfig(int8_t* inOutPower); int16_t setPacketMode(uint8_t mode, uint8_t len); + int16_t setHeaderType(uint8_t headerType) // fixes to errata int16_t fixSensitivity();