[RF69] Update macro names

This commit is contained in:
jgromes 2021-11-14 13:00:28 +01:00
parent 5d712f0bda
commit 22ae7dfd9b
2 changed files with 7 additions and 7 deletions

View file

@ -393,11 +393,11 @@ int16_t RF69::setOokThresholdType(uint8_t type) {
} }
int16_t RF69::setOokFixedThreshold(uint8_t value) { int16_t RF69::setOokFixedThreshold(uint8_t value) {
return(_mod->SPIsetRegValue(RF69_REG_OOK_FIX, value, 7, 0, 5)); return(_mod->SPIsetRegValue(RADIOLIB_RF69_REG_OOK_FIX, value, 7, 0, 5));
} }
int16_t RF69::setOokPeakThresholdDecrement(uint8_t value) { int16_t RF69::setOokPeakThresholdDecrement(uint8_t value) {
return(_mod->SPIsetRegValue(RF69_REG_OOK_PEAK, value, 2, 0, 5)); return(_mod->SPIsetRegValue(RADIOLIB_RF69_REG_OOK_PEAK, value, 2, 0, 5));
} }
int16_t RF69::setFrequency(float freq) { int16_t RF69::setFrequency(float freq) {
@ -725,11 +725,11 @@ int16_t RF69::disableSyncWordFiltering() {
} }
int16_t RF69::enableContinuousModeBitSync() { int16_t RF69::enableContinuousModeBitSync() {
return(_mod->SPIsetRegValue(RF69_REG_DATA_MODUL, RF69_CONTINUOUS_MODE_WITH_SYNC, 6, 5)); return(_mod->SPIsetRegValue(RADIOLIB_RF69_REG_DATA_MODUL, RADIOLIB_RF69_CONTINUOUS_MODE_WITH_SYNC, 6, 5));
} }
int16_t RF69::disableContinuousModeBitSync() { int16_t RF69::disableContinuousModeBitSync() {
return(_mod->SPIsetRegValue(RF69_REG_DATA_MODUL, RF69_CONTINUOUS_MODE, 6, 5)); return(_mod->SPIsetRegValue(RADIOLIB_RF69_REG_DATA_MODUL, RADIOLIB_RF69_CONTINUOUS_MODE, 6, 5));
} }
int16_t RF69::setCrcFiltering(bool crcOn) { int16_t RF69::setCrcFiltering(bool crcOn) {

View file

@ -753,7 +753,7 @@ class RF69: public PhysicalLayer {
/*! /*!
\brief Selects the type of threshold in the OOK data slicer \brief Selects the type of threshold in the OOK data slicer
\param type Threshold type: RF69_OOK_THRESH_PEAK(default), RF69_OOK_THRESH_FIXED or RF69_OOK_THRESH_AVERAGE \param type Threshold type: RADIOLIB_RF69_OOK_THRESH_PEAK(default), RADIOLIB_RF69_OOK_THRESH_FIXED or RADIOLIB_RF69_OOK_THRESH_AVERAGE
\returns \ref status_codes \returns \ref status_codes
*/ */
@ -762,7 +762,7 @@ class RF69: public PhysicalLayer {
/*! /*!
\brief Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Peak mode is used. \brief Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Peak mode is used.
\param value Fixed threshold value (in dB) in the OOK demodulator. Used when OokThresType = RF69_OOK_THRESH_FIXED. \param value Fixed threshold value (in dB) in the OOK demodulator. Used when OokThresType = RADIOLIB_RF69_OOK_THRESH_FIXED.
\returns \ref status_codes \returns \ref status_codes
*/ */
@ -771,7 +771,7 @@ class RF69: public PhysicalLayer {
/*! /*!
\brief Period of decrement of the RSSI threshold in the OOK demodulator. \brief Period of decrement of the RSSI threshold in the OOK demodulator.
\param value Use defines RF69_OOK_PEAK_THRESH_DEC_X_X_CHIP \param value Use defines RADIOLIB_RF69_OOK_PEAK_THRESH_DEC_X_X_CHIP
\returns \ref status_codes \returns \ref status_codes
*/ */