SX1272 LoRa RF module PingPong Demo

Dependencies:   SX1272Lib XRange_mbed_src

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

Application demonstrating simple Tx/Rx between two boards. By default, each board starts as a "master" and will transmit a "Ping" message, and then wait for an answer. The first board receiving a "Ping" message will become a slave and answer the "master" with a "Pong". The Ping-Pong is then started

Committer:
netblocks
Date:
Sun May 31 13:08:43 2015 +0000
Revision:
0:5ff027a21ffb
SX1272 LoRa RF module PingPong Demo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
netblocks 0:5ff027a21ffb 1 /*
netblocks 0:5ff027a21ffb 2 / _____) _ | |
netblocks 0:5ff027a21ffb 3 ( (____ _____ ____ _| |_ _____ ____| |__
netblocks 0:5ff027a21ffb 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
netblocks 0:5ff027a21ffb 5 _____) ) ____| | | || |_| ____( (___| | | |
netblocks 0:5ff027a21ffb 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
netblocks 0:5ff027a21ffb 7 ( C )2014 Semtech
netblocks 0:5ff027a21ffb 8
netblocks 0:5ff027a21ffb 9 Description: Contains the callbacks for the IRQs and any application related details
netblocks 0:5ff027a21ffb 10
netblocks 0:5ff027a21ffb 11 License: Revised BSD License, see LICENSE.TXT file include in the project
netblocks 0:5ff027a21ffb 12
netblocks 0:5ff027a21ffb 13
netblocks 0:5ff027a21ffb 14 Maintainers: www.netblocks.eu
netblocks 0:5ff027a21ffb 15 SX1272 LoRa RF module : http://www.netblocks.eu/xrange-sx1272-lora-datasheet/
netblocks 0:5ff027a21ffb 16
netblocks 0:5ff027a21ffb 17
netblocks 0:5ff027a21ffb 18 */
netblocks 0:5ff027a21ffb 19 #ifndef __MAIN_H__
netblocks 0:5ff027a21ffb 20 #define __MAIN_H__
netblocks 0:5ff027a21ffb 21
netblocks 0:5ff027a21ffb 22 /*
netblocks 0:5ff027a21ffb 23 * Callback functions prototypes
netblocks 0:5ff027a21ffb 24 */
netblocks 0:5ff027a21ffb 25 /*!
netblocks 0:5ff027a21ffb 26 * @brief Function to be executed on Radio Tx Done event
netblocks 0:5ff027a21ffb 27 */
netblocks 0:5ff027a21ffb 28 void OnTxDone( void );
netblocks 0:5ff027a21ffb 29
netblocks 0:5ff027a21ffb 30 /*!
netblocks 0:5ff027a21ffb 31 * @brief Function to be executed on Radio Rx Done event
netblocks 0:5ff027a21ffb 32 */
netblocks 0:5ff027a21ffb 33 void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
netblocks 0:5ff027a21ffb 34
netblocks 0:5ff027a21ffb 35 /*!
netblocks 0:5ff027a21ffb 36 * @brief Function executed on Radio Tx Timeout event
netblocks 0:5ff027a21ffb 37 */
netblocks 0:5ff027a21ffb 38 void OnTxTimeout( void );
netblocks 0:5ff027a21ffb 39
netblocks 0:5ff027a21ffb 40 /*!
netblocks 0:5ff027a21ffb 41 * @brief Function executed on Radio Rx Timeout event
netblocks 0:5ff027a21ffb 42 */
netblocks 0:5ff027a21ffb 43 void OnRxTimeout( void );
netblocks 0:5ff027a21ffb 44
netblocks 0:5ff027a21ffb 45 /*!
netblocks 0:5ff027a21ffb 46 * @brief Function executed on Radio Rx Error event
netblocks 0:5ff027a21ffb 47 */
netblocks 0:5ff027a21ffb 48 void OnRxError( void );
netblocks 0:5ff027a21ffb 49
netblocks 0:5ff027a21ffb 50 /*!
netblocks 0:5ff027a21ffb 51 * @brief Function executed on Radio Fhss Change Channel event
netblocks 0:5ff027a21ffb 52 */
netblocks 0:5ff027a21ffb 53 void OnFhssChangeChannel( uint8_t channelIndex );
netblocks 0:5ff027a21ffb 54
netblocks 0:5ff027a21ffb 55 /*!
netblocks 0:5ff027a21ffb 56 * @brief Function executed on CAD Done event
netblocks 0:5ff027a21ffb 57 */
netblocks 0:5ff027a21ffb 58 void OnCadDone( void );
netblocks 0:5ff027a21ffb 59
netblocks 0:5ff027a21ffb 60 #endif // __MAIN_H__