[SX126x] Added direct reception dummies

This commit is contained in:
jgromes 2021-06-14 21:15:06 +02:00
parent 536829452f
commit 8e340dfc94
2 changed files with 26 additions and 0 deletions

View file

@ -1213,6 +1213,18 @@ uint8_t SX126x::random() {
return(randByte); return(randByte);
} }
void SX126x::setDirectAction(void (*func)(void)) {
// SX126x is unable to perform direct mode reception
// this method is implemented only for PhysicalLayer compatibility
return(0);
}
void SX126x::readBit(RADIOLIB_PIN_TYPE pin) {
// SX126x is unable to perform direct mode reception
// this method is implemented only for PhysicalLayer compatibility
return(0);
}
int16_t SX126x::setTCXO(float voltage, uint32_t delay) { int16_t SX126x::setTCXO(float voltage, uint32_t delay) {
// set mode to standby // set mode to standby
standby(); standby();

View file

@ -887,6 +887,20 @@ class SX126x: public PhysicalLayer {
*/ */
uint8_t random(); uint8_t random();
/*!
\brief Dummy method, to ensure PhysicalLayer compatibility.
\param func Ignored.
*/
void setDirectAction(void (*func)(void));
/*!
\brief Dummy method, to ensure PhysicalLayer compatibility.
\param pin Ignored.
*/
void readBit(RADIOLIB_PIN_TYPE pin);
#ifndef RADIOLIB_GODMODE #ifndef RADIOLIB_GODMODE
protected: protected:
#endif #endif