[PHY] Added getModem
This commit is contained in:
parent
aa53f3f2c2
commit
6dac841b69
2 changed files with 13 additions and 0 deletions
|
@ -536,6 +536,11 @@ int16_t PhysicalLayer::setModem(ModemType_t modem) {
|
||||||
return(RADIOLIB_ERR_UNSUPPORTED);
|
return(RADIOLIB_ERR_UNSUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int16_t PhysicalLayer::getModem(ModemType_t* modem) {
|
||||||
|
(void)modem;
|
||||||
|
return(RADIOLIB_ERR_UNSUPPORTED);
|
||||||
|
}
|
||||||
|
|
||||||
#if RADIOLIB_INTERRUPT_TIMING
|
#if RADIOLIB_INTERRUPT_TIMING
|
||||||
void PhysicalLayer::setInterruptSetup(void (*func)(uint32_t)) {
|
void PhysicalLayer::setInterruptSetup(void (*func)(uint32_t)) {
|
||||||
Module* mod = getMod();
|
Module* mod = getMod();
|
||||||
|
|
|
@ -662,6 +662,13 @@ class PhysicalLayer {
|
||||||
*/
|
*/
|
||||||
virtual int16_t setModem(ModemType_t modem);
|
virtual int16_t setModem(ModemType_t modem);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Get modem currently in use by the radio.
|
||||||
|
\param modem Pointer to a variable to save the retrieved configuration into.
|
||||||
|
\returns \ref status_codes
|
||||||
|
*/
|
||||||
|
virtual int16_t getModem(ModemType_t* modem);
|
||||||
|
|
||||||
#if RADIOLIB_INTERRUPT_TIMING
|
#if RADIOLIB_INTERRUPT_TIMING
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -720,6 +727,7 @@ class PhysicalLayer {
|
||||||
friend class BellClient;
|
friend class BellClient;
|
||||||
friend class FT8Client;
|
friend class FT8Client;
|
||||||
friend class LoRaWANNode;
|
friend class LoRaWANNode;
|
||||||
|
friend class M17Client;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue