new RF69::setOokFixedThreshold

pull/401/head
Christophe Painchaud 2021-04-16 16:10:06 +02:00
rodzic 0eb5578e22
commit d47c30b18d
2 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -392,6 +392,10 @@ int16_t RF69::setOokFixedThreshold(uint8_t value) {
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) {
// check allowed frequency range
if(!(((freq > 290.0) && (freq < 340.0)) ||

Wyświetl plik

@ -766,6 +766,15 @@ class RF69: public PhysicalLayer {
*/
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.