Adafruit Tiny LoRa Library
Classes | Macros | Typedefs | Enumerations
TinyLoRa.h File Reference
#include <Arduino.h>

Go to the source code of this file.

Classes

class  TinyLoRa
 TinyLoRa Class. More...
 

Macros

#define US902
 Used in USA, Canada and South America. More...
 
#define RFM9x_VER   0x12
 Expected RFM9x RegVersion.
 
#define MODE_SLEEP   0x00
 low-power mode
 
#define MODE_LORA   0x80
 LoRa operating mode.
 
#define MODE_STDBY   0x01
 Osc. and baseband disabled.
 
#define MODE_TX   0x83
 Configures and transmits packet.
 
#define REG_PA_CONFIG   0x09
 PA selection and Output Power control.
 
#define REG_PA_DAC   0x4D
 PA Higher Power Settings.
 
#define REG_PREAMBLE_MSB   0x20
 Preamble Length, MSB.
 
#define REG_PREAMBLE_LSB   0x21
 Preamble Length, LSB.
 
#define REG_FRF_MSB   0x06
 RF Carrier Frequency MSB.
 
#define REG_FRF_MID   0x07
 RF Carrier Frequency Intermediate.
 
#define REG_FRF_LSB   0x08
 RF Carrier Frequency LSB.
 
#define REG_FEI_LSB   0x1E
 Info from Prev. Header.
 
#define REG_FEI_MSB   0x1D
 Number of received bytes.
 
#define REG_MODEM_CONFIG   0x26
 Modem configuration register.
 
#define REG_VER   0x42
 RFM9x version register.
 

Typedefs

typedef enum rfm_channels rfm_channels_t
 
typedef enum rfm_datarates rfm_datarates_t
 

Enumerations

enum  rfm_channels {
  CH0, CH1, CH2, CH3,
  CH4, CH5, CH6, CH7,
  MULTI
}
 
enum  rfm_datarates {
  SF7BW125, SF7BW250, SF8BW125, SF9BW125,
  SF10BW125, SF11BW125, SF12BW125
}
 

Detailed Description

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 http://www.gnu.org/licenses/.

Modified by Brent Rubell for Adafruit Industries.

LGPL license, all text here must be included in any redistribution.

Macro Definition Documentation

◆ US902

#define US902

Used in USA, Canada and South America.

Region configuration

Typedef Documentation

◆ rfm_channels_t

RFM channel options

◆ rfm_datarates_t

RFM fixed datarate, dependent on region

Enumeration Type Documentation

◆ rfm_channels

RFM channel options

◆ rfm_datarates

RFM fixed datarate, dependent on region