// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2012-2024 Scott Penrose and WII5 Buoy contributors // // This file is part of WII5 Buoy firmware. // See LICENSE for full terms. /** * @file WII5RadioLoRa.h * @brief LoRa radio driver (RFM95) — optional, gated on WII5_RADIO_LORA. */ #ifndef WII5RadioLoRa_h #define WII5RadioLoRa_h #ifdef WII5_RADIO_LORA #include #include class WII5RadioLoRa : public WII5Power { public: WII5RadioLoRa() {} virtual WII5_CONTROLLERS controllerId() {return WII5CONTROLLER_DRIVER;} virtual WII5_DRIVERS driverId() {return WII5DRIVER_RADIO;} void begin(); void loop(); void start(bool force = false); void stop(bool force = false); void setPassthrough(bool in); bool getPassthrough(); void setDebug(bool in); bool getDebug(); protected: bool running; bool passthrough; bool debug; uint32_t sendCount; }; extern WII5RadioLoRa wii5RadioLoRa; #endif #endif