From 76dd7181461ddbb80a4739b6d372412542111125 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 11 Feb 2020 14:28:10 +0100 Subject: [PATCH] [PHY] Added data shaping and encoding interface methods --- src/protocols/PhysicalLayer/PhysicalLayer.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.h b/src/protocols/PhysicalLayer/PhysicalLayer.h index 93872ebd..a434bcb3 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.h +++ b/src/protocols/PhysicalLayer/PhysicalLayer.h @@ -190,6 +190,24 @@ class PhysicalLayer { */ virtual int16_t setFrequencyDeviation(float freqDev) = 0; + /*! + \brief Sets GFSK data shaping. Only available in FSK mode. Must be implemented in module class. + + \param sh Shaping to be set. Set to zero to disable data shaping. + + \returns \ref status_codes + */ + virtual int16_t setDataShaping(float sh) = 0; + + /*! + \brief Sets FSK data encoding. Only available in FSK mode. Must be implemented in module class. + + \param enc Encoding to be used. Set to zero to for no encoding (NRZ). + + \returns \ref status_codes + */ + virtual int16_t setEncoding(uint8_t encoding) = 0; + /*! \brief Gets the module frequency step size that was set in constructor.