[nRF24] Added direct reception dummies
This commit is contained in:
parent
1fc787c062
commit
ee9e77d279
2 changed files with 26 additions and 0 deletions
|
@ -511,6 +511,18 @@ uint8_t nRF24::random() {
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void nRF24::setDirectAction(void (*func)(void)) {
|
||||||
|
// nRF24 is unable to perform direct mode actions
|
||||||
|
// this method is implemented only for PhysicalLayer compatibility
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void nRF24::readBit(RADIOLIB_PIN_TYPE pin) {
|
||||||
|
// nRF24 is unable to perform direct mode actions
|
||||||
|
// this method is implemented only for PhysicalLayer compatibility
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
void nRF24::clearIRQ() {
|
void nRF24::clearIRQ() {
|
||||||
// clear status bits
|
// clear status bits
|
||||||
_mod->SPIsetRegValue(NRF24_REG_STATUS, NRF24_RX_DR | NRF24_TX_DS | NRF24_MAX_RT, 6, 4);
|
_mod->SPIsetRegValue(NRF24_REG_STATUS, NRF24_RX_DR | NRF24_TX_DS | NRF24_MAX_RT, 6, 4);
|
||||||
|
|
|
@ -471,6 +471,20 @@ class nRF24: 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);
|
||||||
|
|
||||||
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
#if !defined(RADIOLIB_GODMODE) && !defined(RADIOLIB_LOW_LEVEL)
|
||||||
protected:
|
protected:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue