mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-08-15 15:19:45 +00:00
* Add uConsole GTK shell with SQLite map cache * Improve uConsole GTK overview dashboard * Detect uConsole hardware endpoints * Add uConsole hardware binding and map fallback * Improve uConsole settings and map UI * feat: adapt uConsole Linux shell * docs: document GPS settings and T-Deck UART noise * style: apply clang-format * site: update 0.1.25 release highlights --------- Co-authored-by: vicliu624 <vicliu@outlook.com>
24 lines
773 B
C++
24 lines
773 B
C++
#pragma once
|
|
|
|
#include "TLoRaPagerTypes.h"
|
|
#include "gps/usecase/gps_runtime_config.h"
|
|
|
|
class GPS;
|
|
|
|
// Shared GPS board capability contract.
|
|
class GpsBoard
|
|
{
|
|
public:
|
|
virtual ~GpsBoard() = default;
|
|
|
|
virtual void setGPSReceiverInitConfig(const gps::GpsReceiverInitConfig& config) { (void)config; }
|
|
virtual gps::GpsReceiverProtocol getGPSReceiverProtocol() const { return gps::GpsReceiverProtocol::Unknown; }
|
|
virtual bool initGPS() = 0;
|
|
virtual void setGPSOnline(bool online) = 0;
|
|
virtual void deinitGPS() { setGPSOnline(false); }
|
|
virtual GPS& getGPS() = 0;
|
|
virtual bool isGPSReady() const = 0;
|
|
virtual void powerControl(PowerCtrlChannel_t ch, bool enable) = 0;
|
|
virtual bool syncTimeFromGPS(uint32_t gps_task_interval_ms = 0) = 0;
|
|
};
|