SX1272 LoRa RF module PingPong Demo

Dependencies:   SX1272Lib XRange_mbed_src

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 /*
00002  / _____)             _              | |
00003 ( (____  _____ ____ _| |_ _____  ____| |__
00004  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
00005  _____) ) ____| | | || |_| ____( (___| | | |
00006 (______/|_____)_|_|_| \__)_____)\____)_| |_|
00007     ( C )2014 Semtech
00008 
00009 Description: Contains the callbacks for the IRQs and any application related details
00010 
00011 License: Revised BSD License, see LICENSE.TXT file include in the project
00012 
00013 
00014 Maintainers: www.netblocks.eu
00015 SX1272 LoRa RF module : http://www.netblocks.eu/xrange-sx1272-lora-datasheet/
00016 
00017 
00018 */
00019 #ifndef __MAIN_H__
00020 #define __MAIN_H__
00021 
00022 /*
00023  * Callback functions prototypes
00024  */
00025 /*!
00026  * @brief Function to be executed on Radio Tx Done event
00027  */
00028 void OnTxDone( void );
00029 
00030 /*!
00031  * @brief Function to be executed on Radio Rx Done event
00032  */
00033 void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
00034 
00035 /*!
00036  * @brief Function executed on Radio Tx Timeout event
00037  */
00038 void OnTxTimeout( void );
00039 
00040 /*!
00041  * @brief Function executed on Radio Rx Timeout event
00042  */
00043 void OnRxTimeout( void );
00044 
00045 /*!
00046  * @brief Function executed on Radio Rx Error event
00047  */
00048 void OnRxError( void );
00049 
00050 /*!
00051  * @brief Function executed on Radio Fhss Change Channel event
00052  */
00053 void OnFhssChangeChannel( uint8_t channelIndex );
00054 
00055 /*!
00056  * @brief Function executed on CAD Done event
00057  */
00058 void OnCadDone( void );
00059 
00060 #endif // __MAIN_H__