[SX128x] Added direct reception dummies
This commit is contained in:
parent
8e340dfc94
commit
48a80b22f5
2 changed files with 26 additions and 0 deletions
|
@ -1152,6 +1152,18 @@ uint8_t SX128x::random() {
|
|||
return(0);
|
||||
}
|
||||
|
||||
void SX126x::setDirectAction(void (*func)(void)) {
|
||||
// SX128x is unable to perform direct mode reception
|
||||
// this method is implemented only for PhysicalLayer compatibility
|
||||
return(0);
|
||||
}
|
||||
|
||||
void SX126x::readBit(RADIOLIB_PIN_TYPE pin) {
|
||||
// SX128x is unable to perform direct mode reception
|
||||
// this method is implemented only for PhysicalLayer compatibility
|
||||
return(0);
|
||||
}
|
||||
|
||||
uint8_t SX128x::getStatus() {
|
||||
uint8_t data = 0;
|
||||
SPIreadCommand(SX128X_CMD_GET_STATUS, &data, 1);
|
||||
|
|
|
@ -784,6 +784,20 @@ class SX128x: 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);
|
||||
|
||||
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
||||
protected:
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue