Prueba LoRa

Dependencies:   BLE_API SX1276Lib mbed nRF51822

Fork of BLE_Observer by Bluetooth Low Energy

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 Maintainer: Miguel Luis and Gregory Cristian
00014 */
00015 #ifndef __MAIN_H__
00016 #define __MAIN_H__
00017 
00018 
00019 /*!
00020  * Frequency hopping frequencies table
00021  */
00022 const uint32_t HoppingFrequencies[] =
00023 {
00024     916500000,
00025     923500000,
00026     906500000,
00027     917500000,
00028     917500000,
00029     909000000,
00030     903000000,
00031     916000000,
00032     912500000,
00033     926000000,
00034     925000000,
00035     909500000,
00036     913000000,
00037     918500000,
00038     918500000,
00039     902500000,
00040     911500000,
00041     926500000,
00042     902500000,
00043     922000000,
00044     924000000,
00045     903500000,
00046     913000000,
00047     922000000,
00048     926000000,
00049     910000000,
00050     920000000,
00051     922500000,
00052     911000000,
00053     922000000,
00054     909500000,
00055     926000000,
00056     922000000,
00057     918000000,
00058     925500000,
00059     908000000,
00060     917500000,
00061     926500000,
00062     908500000,
00063     916000000,
00064     905500000,
00065     916000000,
00066     903000000,
00067     905000000,
00068     915000000,
00069     913000000,
00070     907000000,
00071     910000000,
00072     926500000,
00073     925500000,
00074     911000000
00075 };
00076 
00077 /*
00078  * Callback functions prototypes
00079  */
00080 /*!
00081  * @brief Function to be executed on Radio Tx Done event
00082  */
00083 void OnTxDone( void );
00084 
00085 /*!
00086  * @brief Function to be executed on Radio Rx Done event
00087  */
00088 void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
00089 
00090 /*!
00091  * @brief Function executed on Radio Tx Timeout event
00092  */
00093 void OnTxTimeout( void );
00094 
00095 /*!
00096  * @brief Function executed on Radio Rx Timeout event
00097  */
00098 void OnRxTimeout( void );
00099 
00100 /*!
00101  * @brief Function executed on Radio Rx Error event
00102  */
00103 void OnRxError( void );
00104 
00105 /*!
00106  * @brief Function executed on Radio Fhss Change Channel event
00107  */
00108 void OnFhssChangeChannel( uint8_t channelIndex );
00109 
00110 /*!
00111  * @brief Function executed on CAD Done event
00112  */
00113 void OnCadDone( void );
00114 
00115 #endif // __MAIN_H__