XRange SX1272Lib

Dependents:   XRangePingPong XRange-LoRaWAN-lmic-app lora-transceiver

Fork of SX1276Lib by Semtech

SX1272 LoRa RF module https://www.netblocks.eu/xrange-sx1272-lora-datasheet/

Driver for the SX1272 RF Transceiver.

Committer:
netblocks
Date:
Thu Jan 07 08:14:20 2016 +0000
Revision:
18:0d1c09259f20
Parent:
13:618826a997e2
Sets RX/TX packet length 256 bytes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GregCr 0:e6ceb13d2d05 1 /*
GregCr 0:e6ceb13d2d05 2 / _____) _ | |
GregCr 0:e6ceb13d2d05 3 ( (____ _____ ____ _| |_ _____ ____| |__
GregCr 0:e6ceb13d2d05 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
GregCr 0:e6ceb13d2d05 5 _____) ) ____| | | || |_| ____( (___| | | |
GregCr 0:e6ceb13d2d05 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
GregCr 0:e6ceb13d2d05 7 ( C )2014 Semtech
GregCr 0:e6ceb13d2d05 8
GregCr 0:e6ceb13d2d05 9 Description: Interface for the radios, contains the main functions that a radio needs, and 5 callback functions
GregCr 0:e6ceb13d2d05 10
GregCr 0:e6ceb13d2d05 11 License: Revised BSD License, see LICENSE.TXT file include in the project
GregCr 0:e6ceb13d2d05 12
GregCr 0:e6ceb13d2d05 13 Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin
GregCr 0:e6ceb13d2d05 14 */
GregCr 0:e6ceb13d2d05 15 #include "radio.h"
GregCr 0:e6ceb13d2d05 16
GregCr 7:2b555111463f 17 Radio::Radio( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ),
mluis 13:618826a997e2 18 void ( *rxTimeout ) ( ), void ( *rxError ) ( ), void ( *fhssChangeChannel ) ( uint8_t channelIndex ), void ( *cadDone ) ( bool channelActivityDetected ) )
GregCr 0:e6ceb13d2d05 19 {
mluis 13:618826a997e2 20 this->txDone = txDone;
mluis 13:618826a997e2 21 this->txTimeout = txTimeout;
mluis 13:618826a997e2 22 this->rxDone = rxDone;
mluis 13:618826a997e2 23 this->rxTimeout = rxTimeout;
mluis 13:618826a997e2 24 this->rxError = rxError;
mluis 13:618826a997e2 25 this->fhssChangeChannel = fhssChangeChannel;
GregCr 7:2b555111463f 26 this->cadDone = cadDone;
GregCr 0:e6ceb13d2d05 27 }
GregCr 0:e6ceb13d2d05 28