LoRa_APRS_iGate/include/station_utils.h

48 lines
1.5 KiB
C
Raw Permalink Normal View History

2025-07-15 22:28:23 +02:00
/* Copyright (C) 2025 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/>.
*/
2023-06-06 19:46:49 +02:00
#ifndef STATION_UTILS_H_
#define STATION_UTILS_H_
2023-06-06 19:46:49 +02:00
#include <Arduino.h>
2024-02-25 14:53:16 +01:00
struct LastHeardStation {
uint32_t lastHeardTime;
String station;
};
2023-06-06 19:46:49 +02:00
namespace STATION_Utils {
2025-04-24 15:50:58 +02:00
void loadBlacklistAndManagers();
2025-03-09 14:23:34 +01:00
bool isBlacklisted(const String& callsign);
bool isManager(const String& callsign);
2025-02-25 17:54:36 +01:00
bool checkObjectTime(const String& packet);
2024-01-03 02:12:10 +01:00
void deleteNotHeard();
2024-05-15 22:41:07 +02:00
void updateLastHeard(const String& station);
bool wasHeard(const String& station);
2024-05-14 02:29:08 +02:00
void clean25SegBuffer();
2024-05-15 22:41:07 +02:00
bool check25SegBuffer(const String& station, const String& textMessage);
2025-04-24 16:36:08 +02:00
void processOutputPacketBufferUltraEcoMode();
void processOutputPacketBuffer();
2025-10-11 23:27:06 +02:00
void addToOutputPacketBuffer(const String& packet, bool flag = false);
2023-06-06 19:46:49 +02:00
}
#endif