[PHY] Added data rate check method

pull/952/head
jgromes 2024-01-27 18:23:52 +01:00
rodzic a981f9828a
commit b734e23460
3 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -286,6 +286,7 @@ clearPacketReceivedAction KEYWORD2
setPacketSentAction KEYWORD2
clearPacketSentAction KEYWORD2
setDataRate KEYWORD2
checkDataRate KEYWORD2
# BellModem
setModem KEYWORD2

Wyświetl plik

@ -272,6 +272,11 @@ int16_t PhysicalLayer::setDataRate(DataRate_t dr) {
return(RADIOLIB_ERR_UNSUPPORTED);
}
int16_t PhysicalLayer::checkDataRate(DataRate_t dr) {
(void)dr;
return(RADIOLIB_ERR_UNSUPPORTED);
}
float PhysicalLayer::getFreqStep() const {
return(this->freqStep);
}

Wyświetl plik

@ -278,6 +278,13 @@ class PhysicalLayer {
*/
virtual int16_t setDataRate(DataRate_t dr);
/*!
\brief Check the data rate can be configured by this module. Must be implemented in module class if the module supports it.
\param dr Data rate struct. Interpretation depends on currently active modem (FSK or LoRa).
\returns \ref status_codes
*/
virtual int16_t checkDataRate(DataRate_t dr);
/*!
\brief Gets the module frequency step size that was set in constructor.
\returns Synthesizer frequency step size in Hz.