Encapsulate RadioLibInterface receive IRQ logic (#4866)

* Encapsulate RadioLibInterface receive IRQ logic

* More concise

* Trunk
This commit is contained in:
Ben Meadors
2024-09-25 16:19:18 -05:00
committed by GitHub
parent 51e4b364b0
commit baf9cf5a59
9 changed files with 30 additions and 78 deletions

View File

@@ -167,6 +167,10 @@ class RadioLibInterface : public RadioInterface, protected concurrency::Notified
meshtastic_QueueStatus getQueueStatus();
protected:
uint32_t activeReceiveStart = 0;
bool receiveDetected(uint16_t irq, ulong syncWordHeaderValidFlag, ulong preambleDetectedFlag);
/** Do any hardware setup needed on entry into send configuration for the radio.
* Subclasses can customize, but must also call this base method */
virtual void configHardwareForSend();