[SX126x] Use 32-bit IRQ flags
This commit is contained in:
parent
8eac3f1bf2
commit
bfb7c8dd3b
2 changed files with 4 additions and 4 deletions
|
@ -581,7 +581,7 @@ int16_t SX126x::startReceive() {
|
||||||
return(this->startReceive(RADIOLIB_SX126X_RX_TIMEOUT_INF, RADIOLIB_SX126X_IRQ_RX_DEFAULT, RADIOLIB_SX126X_IRQ_RX_DONE, 0));
|
return(this->startReceive(RADIOLIB_SX126X_RX_TIMEOUT_INF, RADIOLIB_SX126X_IRQ_RX_DEFAULT, RADIOLIB_SX126X_IRQ_RX_DONE, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t SX126x::startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len) {
|
int16_t SX126x::startReceive(uint32_t timeout, uint32_t irqFlags, uint32_t irqMask, size_t len) {
|
||||||
(void)len;
|
(void)len;
|
||||||
int16_t state = startReceiveCommon(timeout, irqFlags, irqMask);
|
int16_t state = startReceiveCommon(timeout, irqFlags, irqMask);
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
@ -1456,7 +1456,7 @@ RadioLibTime_t SX126x::calculateRxTimeout(RadioLibTime_t timeoutUs) {
|
||||||
return(timeout);
|
return(timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t SX126x::irqRxDoneRxTimeout(uint16_t &irqFlags, uint16_t &irqMask) {
|
int16_t SX126x::irqRxDoneRxTimeout(uint32_t &irqFlags, uint32_t &irqMask) {
|
||||||
irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT; // flags that can appear in the IRQ register
|
irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT; // flags that can appear in the IRQ register
|
||||||
irqMask = RADIOLIB_SX126X_IRQ_RX_DONE | RADIOLIB_SX126X_IRQ_TIMEOUT; // flags that will trigger DIO0
|
irqMask = RADIOLIB_SX126X_IRQ_RX_DONE | RADIOLIB_SX126X_IRQ_TIMEOUT; // flags that will trigger DIO0
|
||||||
return(RADIOLIB_ERR_NONE);
|
return(RADIOLIB_ERR_NONE);
|
||||||
|
|
|
@ -654,7 +654,7 @@ class SX126x: public PhysicalLayer {
|
||||||
\param len Only for PhysicalLayer compatibility, not used.
|
\param len Only for PhysicalLayer compatibility, not used.
|
||||||
\returns \ref status_codes
|
\returns \ref status_codes
|
||||||
*/
|
*/
|
||||||
int16_t startReceive(uint32_t timeout, uint16_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE, size_t len = 0);
|
int16_t startReceive(uint32_t timeout, uint32_t irqFlags = RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint32_t irqMask = RADIOLIB_SX126X_IRQ_RX_DONE, size_t len = 0);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Interrupt-driven receive method where the device mostly sleeps and periodically wakes to listen.
|
\brief Interrupt-driven receive method where the device mostly sleeps and periodically wakes to listen.
|
||||||
|
@ -972,7 +972,7 @@ class SX126x: public PhysicalLayer {
|
||||||
\param irqMask Mask indicating which IRQ triggers a DIO
|
\param irqMask Mask indicating which IRQ triggers a DIO
|
||||||
\returns \ref status_codes
|
\returns \ref status_codes
|
||||||
*/
|
*/
|
||||||
int16_t irqRxDoneRxTimeout(uint16_t &irqFlags, uint16_t &irqMask) override;
|
int16_t irqRxDoneRxTimeout(uint32_t &irqFlags, uint32_t &irqMask);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Check whether the IRQ bit for RxTimeout is set
|
\brief Check whether the IRQ bit for RxTimeout is set
|
||||||
|
|
Loading…
Add table
Reference in a new issue