[SX128x] Added PHY startReceive (#700)
This commit is contained in:
parent
5d365d4da7
commit
ee7c1e7604
2 changed files with 6 additions and 2 deletions
|
@ -546,7 +546,9 @@ int16_t SX128x::finishTransmit() {
|
|||
return(standby());
|
||||
}
|
||||
|
||||
int16_t SX128x::startReceive(uint16_t timeout, uint16_t irqFlags, uint16_t irqMask) {
|
||||
int16_t SX128x::startReceive(uint16_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len) {
|
||||
(void)len;
|
||||
|
||||
// check active modem
|
||||
if(getPacketType() == RADIOLIB_SX128X_PACKET_TYPE_RANGING) {
|
||||
return(RADIOLIB_ERR_WRONG_MODEM);
|
||||
|
|
|
@ -571,9 +571,11 @@ class SX128x: public PhysicalLayer {
|
|||
|
||||
\param irqMask Sets the mask of IRQ flags that will trigger DIO1, defaults to RADIOLIB_SX128X_IRQ_RX_DONE.
|
||||
|
||||
\param len Only for PhysicalLayer compatibility, not used.
|
||||
|
||||
\returns \ref status_codes
|
||||
*/
|
||||
int16_t startReceive(uint16_t timeout = RADIOLIB_SX128X_RX_TIMEOUT_INF, uint16_t irqFlags = RADIOLIB_SX128X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX128X_IRQ_RX_DONE);
|
||||
int16_t startReceive(uint16_t timeout = RADIOLIB_SX128X_RX_TIMEOUT_INF, uint16_t irqFlags = RADIOLIB_SX128X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX128X_IRQ_RX_DONE, size_t len = 0);
|
||||
|
||||
/*!
|
||||
\brief Reads the current IRQ status.
|
||||
|
|
Loading…
Add table
Reference in a new issue