* added LLCC68 module support

Esse commit está contido em:
Scott Powell
2025-01-31 12:46:33 +11:00
commit 7ed2b17b35
2 arquivos alterados com 37 adições e 0 exclusões
+16
Ver Arquivo
@@ -0,0 +1,16 @@
#pragma once
#include <RadioLib.h>
#define SX126X_IRQ_HEADER_VALID 0b0000010000 // 4 4 valid LoRa header received
class CustomLLCC68 : public LLCC68 {
public:
CustomLLCC68(Module *mod) : LLCC68(mod) { }
bool isReceiving() {
uint16_t irq = getIrqStatus();
bool hasPreamble = (irq & SX126X_IRQ_HEADER_VALID);
return hasPreamble;
}
};