[SX126x] Added direct reception dummies
This commit is contained in:
parent
536829452f
commit
8e340dfc94
2 changed files with 26 additions and 0 deletions
|
@ -1213,6 +1213,18 @@ uint8_t SX126x::random() {
|
|||
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) {
|
||||
// set mode to standby
|
||||
standby();
|
||||
|
|
|
@ -887,6 +887,20 @@ class SX126x: public PhysicalLayer {
|
|||
*/
|
||||
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
|
||||
protected:
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue