mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-10-31 02:51:58 +01:00
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
/* Copyright (C) 2026 Ricardo Guzman - CA2RXU
|
|
*
|
|
* This file is part of LoRa APRS iGate.
|
|
*
|
|
* LoRa APRS iGate is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* LoRa APRS iGate is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with LoRa APRS iGate. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef LORA_UTILS_H_
|
|
#define LORA_UTILS_H_
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
namespace LoRa_Utils {
|
|
|
|
void setup();
|
|
void sendNewPacket(const String& newPacket);
|
|
String receivePacketFromSleep();
|
|
String receivePacket();
|
|
void changeFreqTx();
|
|
void changeFreqRx();
|
|
void wakeRadio();
|
|
void sleepRadio();
|
|
|
|
void incrementPacketSendSuccess();
|
|
unsigned int getPacketSendSuccess();
|
|
void incrementPacketSendFail();
|
|
unsigned int getPacketSendFail();
|
|
void incrementPacketReceiveSuccess();
|
|
unsigned int getPacketReceiveSuccess();
|
|
void incrementPacketReceiveFail();
|
|
unsigned int getPacketReceiveFail();
|
|
void incrementPacketBlacklisted();
|
|
unsigned int getPacketBlacklisted();
|
|
bool isBeyondWindow(unsigned long time);
|
|
void resetPacketCounters(unsigned long time);
|
|
|
|
}
|
|
|
|
#endif |