[RF69] Added PHY startReceive (#700)
This commit is contained in:
parent
a534f490b1
commit
b108686a0f
2 changed files with 23 additions and 0 deletions
|
@ -272,6 +272,14 @@ int16_t RF69::startReceive() {
|
||||||
return(state);
|
return(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int16_t RF69::startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len) {
|
||||||
|
(void)timeout;
|
||||||
|
(void)irqFlags;
|
||||||
|
(void)irqMask;
|
||||||
|
(void)len;
|
||||||
|
return(startReceive());
|
||||||
|
}
|
||||||
|
|
||||||
void RF69::setDio0Action(void (*func)(void)) {
|
void RF69::setDio0Action(void (*func)(void)) {
|
||||||
_mod->attachInterrupt(RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(_mod->getIrq()), func, RISING);
|
_mod->attachInterrupt(RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(_mod->getIrq()), func, RISING);
|
||||||
}
|
}
|
||||||
|
|
|
@ -722,6 +722,21 @@ class RF69: public PhysicalLayer {
|
||||||
*/
|
*/
|
||||||
int16_t startReceive();
|
int16_t startReceive();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\brief Interrupt-driven receive method, implemented for compatibility with PhysicalLayer.
|
||||||
|
|
||||||
|
\param timeout Ignored.
|
||||||
|
|
||||||
|
\param irqFlags Ignored.
|
||||||
|
|
||||||
|
\param irqMask Ignored.
|
||||||
|
|
||||||
|
\param len Ignored.
|
||||||
|
|
||||||
|
\returns \ref status_codes
|
||||||
|
*/
|
||||||
|
int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Reads data received after calling startReceive method.
|
\brief Reads data received after calling startReceive method.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue