[SX128x] Added default startReceive method
This commit is contained in:
parent
05bd83e0a2
commit
f936d53639
2 changed files with 12 additions and 0 deletions
|
@ -548,6 +548,10 @@ int16_t SX128x::finishTransmit() {
|
||||||
return(standby());
|
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) {
|
int16_t SX128x::startReceive(uint16_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len) {
|
||||||
(void)len;
|
(void)len;
|
||||||
|
|
||||||
|
|
|
@ -511,6 +511,14 @@ class SX128x: public PhysicalLayer {
|
||||||
*/
|
*/
|
||||||
int16_t finishTransmit() override;
|
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.
|
\brief Interrupt-driven receive method. DIO1 will be activated when full packet is received.
|
||||||
\param timeout Raw timeout value, expressed as multiples of 15.625 us. Defaults to
|
\param timeout Raw timeout value, expressed as multiples of 15.625 us. Defaults to
|
||||||
|
|
Loading…
Add table
Reference in a new issue