new RF69::setOokFixedThreshold

This commit is contained in:
Christophe Painchaud 2021-04-16 16:10:06 +02:00
parent 0eb5578e22
commit d47c30b18d
2 changed files with 13 additions and 0 deletions

View file

@ -392,6 +392,10 @@ int16_t RF69::setOokFixedThreshold(uint8_t value) {
return(_mod->SPIsetRegValue(RF69_REG_OOK_FIX, value, 7, 0, 5)); return(_mod->SPIsetRegValue(RF69_REG_OOK_FIX, value, 7, 0, 5));
} }
int16_t RF69::setOokPeakThresholdDecrement(uint8_t value) {
return(_mod->SPIsetRegValue(RF69_REG_OOK_PEAK, value, 2, 0, 5));
}
int16_t RF69::setFrequency(float freq) { int16_t RF69::setFrequency(float freq) {
// check allowed frequency range // check allowed frequency range
if(!(((freq > 290.0) && (freq < 340.0)) || if(!(((freq > 290.0) && (freq < 340.0)) ||

View file

@ -766,6 +766,15 @@ class RF69: public PhysicalLayer {
*/ */
int16_t setOokFixedThreshold(uint8_t value); int16_t setOokFixedThreshold(uint8_t value);
/*!
\brief Period of decrement of the RSSI threshold in the OOK demodulator.
\param value Use defines RF69_OOK_PEAK_THRESH_DEC_X_X_CHIP
\returns \ref status_codes
*/
int16_t setOokPeakThresholdDecrement(uint8_t value);
/*! /*!
\brief Set modem in fixed packet length mode. \brief Set modem in fixed packet length mode.