/*! * @file TinyLoRa.h * * This is part of Adafruit's TinyLoRa library for the Arduino platform. It is * designed specifically to work with the Adafruit Feather 32u4 RFM95 LoRa: * https://www.adafruit.com/product/3078 * * This library uses SPI to communicate, 4 pins (SCL, SDA, IRQ, SS) * are required to interface with the HopeRF RFM95/96 breakout. * * Adafruit invests time and resources providing this open source code, * please support Adafruit and open-source hardware by purchasing * products from Adafruit! * * Copyright 2015, 2016 Ideetron B.V. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * * Modified by Brent Rubell for Adafruit Industries. * * LGPL license, all text here must be included in any redistribution. * */ #ifndef TINY_LORA_H #define TINY_LORA_H #include #include // uncomment for debug output // #define DEBUG /** RFM channel options */ typedef enum rfm_channels { CH0, CH1, CH2, CH3, CH4, CH5, CH6, CH7, MULTI, } rfm_channels_t; /** RFM fixed datarate, dependent on region */ typedef enum rfm_datarates { SF7BW125, SF7BW250, SF8BW125, SF9BW125, SF10BW125, SF11BW125, SF12BW125, } rfm_datarates_t; /** Region configuration*/ //#define US902 ///< Used in USA, Canada and South America #define EU863 ///< Used in Europe //#define AU915 ///< Used in Australia //#define AS920 ///< Used in Asia /* RFM Modes */ #define MODE_SLEEP 0x00 ///