mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
397 B
16 lines
397 B
#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;
|
|
}
|
|
};
|