[SX128x] Added default startReceive method

This commit is contained in:
jgromes 2023-05-28 22:19:03 +02:00
parent 05bd83e0a2
commit f936d53639
2 changed files with 12 additions and 0 deletions

View file

@ -548,6 +548,10 @@ int16_t SX128x::finishTransmit() {
return(standby());
}
int16_t SX128x::startReceive() {
return(this->startReceive(RADIOLIB_SX128X_RX_TIMEOUT_INF, RADIOLIB_SX128X_IRQ_RX_DEFAULT, RADIOLIB_SX128X_IRQ_RX_DONE, 0));
}
int16_t SX128x::startReceive(uint16_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len) {
(void)len;

View file

@ -510,6 +510,14 @@ class SX128x: public PhysicalLayer {
\returns \ref status_codes
*/
int16_t finishTransmit() override;
/*!
\brief Interrupt-driven receive method with default parameters.
Implemented for compatibility with PhysicalLayer.
\returns \ref status_codes
*/
int16_t startReceive();
/*!
\brief Interrupt-driven receive method. DIO1 will be activated when full packet is received.