From 400c5af9412c0694eb02b128721a51d39ca10b58 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 1 Apr 2024 10:48:41 +0200 Subject: [PATCH] [SX127x] Fixed doxygen warnings --- src/modules/SX127x/SX1272.h | 3 +-- src/modules/SX127x/SX127x.h | 17 +++++------------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/modules/SX127x/SX1272.h b/src/modules/SX127x/SX1272.h index 3ea740ac..5ea92db5 100644 --- a/src/modules/SX127x/SX1272.h +++ b/src/modules/SX127x/SX1272.h @@ -111,8 +111,7 @@ class SX1272: public SX127x { \param sf %LoRa link spreading factor. Allowed values range from 6 to 12. \param cr %LoRa link coding rate denominator. Allowed values range from 5 to 8. \param syncWord %LoRa sync word. Can be used to distinguish different networks. Note that value 0x34 is reserved for LoRaWAN networks. - \param currentLimit Trim value for OCP (over current protection) in mA. Can be set to multiplies of 5 in range 45 to 120 mA and to multiples of 10 in range 120 to 240 mA. - Set to 0 to disable OCP (not recommended). + \param power Transmission output power in dBm. Allowed values range from 2 to 17 dBm. \param preambleLength Length of %LoRa transmission preamble in symbols. The actual preamble length is 4.25 symbols longer than the set number. Allowed values range from 6 to 65535. \param gain Gain of receiver LNA (low-noise amplifier). Can be set to any integer in range 1 to 6 where 1 is the highest gain. diff --git a/src/modules/SX127x/SX127x.h b/src/modules/SX127x/SX127x.h index fd3d4a94..113f417d 100644 --- a/src/modules/SX127x/SX127x.h +++ b/src/modules/SX127x/SX127x.h @@ -600,7 +600,7 @@ class SX127x: public PhysicalLayer { /*! \brief Initialization method. Will be called with appropriate parameters when calling initialization method from derived class. - \param chipVersion Array of possible values in SPI version register. Used to verify the connection and hardware version. + \param chipVersions Array of possible values in SPI version register. Used to verify the connection and hardware version. \param numVersions Number of possible chip versions. \param syncWord %LoRa sync word. \param preambleLength Length of %LoRa transmission preamble in symbols. @@ -615,7 +615,7 @@ class SX127x: public PhysicalLayer { /*! \brief Initialization method for FSK modem. Will be called with appropriate parameters when calling FSK initialization method from derived class. - \param chipVersion Array of possible values in SPI version register. Used to verify the connection and hardware version. + \param chipVersions Array of possible values in SPI version register. Used to verify the connection and hardware version. \param numVersions Number of possible chip versions. \param freqDev Frequency deviation of the FSK transmission in kHz. \param rxBw Receiver bandwidth in kHz. @@ -928,7 +928,7 @@ class SX127x: public PhysicalLayer { /*! \brief Sets FSK automatic frequency correction bandwidth. Allowed values range from 2.6 to 250 kHz. Only available in FSK mode. - \param rxBw Receiver AFC bandwidth to be set (in kHz). + \param afcBw Receiver AFC bandwidth to be set (in kHz). \returns \ref status_codes */ int16_t setAFCBandwidth(float afcBw); @@ -1038,7 +1038,7 @@ class SX127x: public PhysicalLayer { /*! \brief Set modem in variable packet length mode. Available in FSK mode only. - \param len Maximum packet length. + \param maxLen Maximum packet length. \returns \ref status_codes */ int16_t variablePacketLengthMode(uint8_t maxLen = RADIOLIB_SX127X_MAX_PACKET_LENGTH_FSK); @@ -1201,14 +1201,6 @@ class SX127x: public PhysicalLayer { */ int16_t setDIOPreambleDetect(bool usePreambleDetect); - /*! - \brief Gets recorded signal strength indicator. - \param packet Whether to read last packet RSSI, or the current value. LoRa mode only, ignored for FSK. - \param skipReceive Set to true to skip putting radio in receive mode for the RSSI measurement in FSK/OOK mode. - \returns RSSI value in dBm. - */ - float getRSSI(bool packet, bool skipReceive, int16_t offset); - /*! \brief Sets the RSSI value above which the RSSI interrupt is signaled \param dbm A dBm value between -127.5 and 0 inclusive @@ -1246,6 +1238,7 @@ class SX127x: public PhysicalLayer { int16_t getActiveModem(); int16_t setFrequencyRaw(float newFreq); int16_t setBitRateCommon(float br, uint8_t fracRegAddr); + float getRSSI(bool packet, bool skipReceive, int16_t offset); #if !RADIOLIB_GODMODE private: