SX1276 Ping Pong Demo Application

Dependencies:   SX1276Lib mbed

Simple Ping-Pong demo application between two SX1276MB1xAs demo board.

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:
mluis
Date:
Tue Dec 16 12:52:01 2014 +0000
Revision:
9:e764990e45df
Parent:
6:44752b4f8ab1
Updated according to radio library API change

Who changed what in which revision?

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