[PHY] Added data rate check method
This commit is contained in:
parent
a981f9828a
commit
b734e23460
3 changed files with 13 additions and 0 deletions
|
@ -286,6 +286,7 @@ clearPacketReceivedAction KEYWORD2
|
|||
setPacketSentAction KEYWORD2
|
||||
clearPacketSentAction KEYWORD2
|
||||
setDataRate KEYWORD2
|
||||
checkDataRate KEYWORD2
|
||||
|
||||
# BellModem
|
||||
setModem KEYWORD2
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue