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.
21 lines
769 B
21 lines
769 B
#pragma once
|
|
|
|
#include "CustomLR1110.h"
|
|
#include "RadioLibWrappers.h"
|
|
|
|
class CustomLR1110Wrapper : public RadioLibWrapper {
|
|
public:
|
|
CustomLR1110Wrapper(CustomLR1110& radio, mesh::MainBoard& board) : RadioLibWrapper(radio, board) { }
|
|
bool isReceivingPacket() override {
|
|
return ((CustomLR1110 *)_radio)->isReceiving();
|
|
}
|
|
|
|
void onSendFinished() override {
|
|
RadioLibWrapper::onSendFinished();
|
|
_radio->setPreambleLength(8); // overcomes weird issues with small and big pkts
|
|
}
|
|
|
|
float getLastRSSI() const override { return ((CustomLR1110 *)_radio)->getRSSI(); }
|
|
float getLastSNR() const override { return ((CustomLR1110 *)_radio)->getSNR(); }
|
|
int16_t setRxBoostedGainMode(bool en) { return ((CustomLR1110 *)_radio)->setRxBoostedGainMode(en); };
|
|
};
|
|
|