Prueba LoRa
Dependencies: BLE_API SX1276Lib mbed nRF51822
Fork of BLE_Observer by
main.h@8:3b30027c7e8f, 2016-11-02 (annotated)
- Committer:
- Javier117
- Date:
- Wed Nov 02 20:53:30 2016 +0000
- Revision:
- 8:3b30027c7e8f
no change
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Javier117 | 8:3b30027c7e8f | 1 | /* |
Javier117 | 8:3b30027c7e8f | 2 | / _____) _ | | |
Javier117 | 8:3b30027c7e8f | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
Javier117 | 8:3b30027c7e8f | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
Javier117 | 8:3b30027c7e8f | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
Javier117 | 8:3b30027c7e8f | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
Javier117 | 8:3b30027c7e8f | 7 | ( C )2014 Semtech |
Javier117 | 8:3b30027c7e8f | 8 | |
Javier117 | 8:3b30027c7e8f | 9 | Description: Contains the callbacks for the IRQs and any application related details |
Javier117 | 8:3b30027c7e8f | 10 | |
Javier117 | 8:3b30027c7e8f | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
Javier117 | 8:3b30027c7e8f | 12 | |
Javier117 | 8:3b30027c7e8f | 13 | Maintainer: Miguel Luis and Gregory Cristian |
Javier117 | 8:3b30027c7e8f | 14 | */ |
Javier117 | 8:3b30027c7e8f | 15 | #ifndef __MAIN_H__ |
Javier117 | 8:3b30027c7e8f | 16 | #define __MAIN_H__ |
Javier117 | 8:3b30027c7e8f | 17 | |
Javier117 | 8:3b30027c7e8f | 18 | |
Javier117 | 8:3b30027c7e8f | 19 | /*! |
Javier117 | 8:3b30027c7e8f | 20 | * Frequency hopping frequencies table |
Javier117 | 8:3b30027c7e8f | 21 | */ |
Javier117 | 8:3b30027c7e8f | 22 | const uint32_t HoppingFrequencies[] = |
Javier117 | 8:3b30027c7e8f | 23 | { |
Javier117 | 8:3b30027c7e8f | 24 | 916500000, |
Javier117 | 8:3b30027c7e8f | 25 | 923500000, |
Javier117 | 8:3b30027c7e8f | 26 | 906500000, |
Javier117 | 8:3b30027c7e8f | 27 | 917500000, |
Javier117 | 8:3b30027c7e8f | 28 | 917500000, |
Javier117 | 8:3b30027c7e8f | 29 | 909000000, |
Javier117 | 8:3b30027c7e8f | 30 | 903000000, |
Javier117 | 8:3b30027c7e8f | 31 | 916000000, |
Javier117 | 8:3b30027c7e8f | 32 | 912500000, |
Javier117 | 8:3b30027c7e8f | 33 | 926000000, |
Javier117 | 8:3b30027c7e8f | 34 | 925000000, |
Javier117 | 8:3b30027c7e8f | 35 | 909500000, |
Javier117 | 8:3b30027c7e8f | 36 | 913000000, |
Javier117 | 8:3b30027c7e8f | 37 | 918500000, |
Javier117 | 8:3b30027c7e8f | 38 | 918500000, |
Javier117 | 8:3b30027c7e8f | 39 | 902500000, |
Javier117 | 8:3b30027c7e8f | 40 | 911500000, |
Javier117 | 8:3b30027c7e8f | 41 | 926500000, |
Javier117 | 8:3b30027c7e8f | 42 | 902500000, |
Javier117 | 8:3b30027c7e8f | 43 | 922000000, |
Javier117 | 8:3b30027c7e8f | 44 | 924000000, |
Javier117 | 8:3b30027c7e8f | 45 | 903500000, |
Javier117 | 8:3b30027c7e8f | 46 | 913000000, |
Javier117 | 8:3b30027c7e8f | 47 | 922000000, |
Javier117 | 8:3b30027c7e8f | 48 | 926000000, |
Javier117 | 8:3b30027c7e8f | 49 | 910000000, |
Javier117 | 8:3b30027c7e8f | 50 | 920000000, |
Javier117 | 8:3b30027c7e8f | 51 | 922500000, |
Javier117 | 8:3b30027c7e8f | 52 | 911000000, |
Javier117 | 8:3b30027c7e8f | 53 | 922000000, |
Javier117 | 8:3b30027c7e8f | 54 | 909500000, |
Javier117 | 8:3b30027c7e8f | 55 | 926000000, |
Javier117 | 8:3b30027c7e8f | 56 | 922000000, |
Javier117 | 8:3b30027c7e8f | 57 | 918000000, |
Javier117 | 8:3b30027c7e8f | 58 | 925500000, |
Javier117 | 8:3b30027c7e8f | 59 | 908000000, |
Javier117 | 8:3b30027c7e8f | 60 | 917500000, |
Javier117 | 8:3b30027c7e8f | 61 | 926500000, |
Javier117 | 8:3b30027c7e8f | 62 | 908500000, |
Javier117 | 8:3b30027c7e8f | 63 | 916000000, |
Javier117 | 8:3b30027c7e8f | 64 | 905500000, |
Javier117 | 8:3b30027c7e8f | 65 | 916000000, |
Javier117 | 8:3b30027c7e8f | 66 | 903000000, |
Javier117 | 8:3b30027c7e8f | 67 | 905000000, |
Javier117 | 8:3b30027c7e8f | 68 | 915000000, |
Javier117 | 8:3b30027c7e8f | 69 | 913000000, |
Javier117 | 8:3b30027c7e8f | 70 | 907000000, |
Javier117 | 8:3b30027c7e8f | 71 | 910000000, |
Javier117 | 8:3b30027c7e8f | 72 | 926500000, |
Javier117 | 8:3b30027c7e8f | 73 | 925500000, |
Javier117 | 8:3b30027c7e8f | 74 | 911000000 |
Javier117 | 8:3b30027c7e8f | 75 | }; |
Javier117 | 8:3b30027c7e8f | 76 | |
Javier117 | 8:3b30027c7e8f | 77 | /* |
Javier117 | 8:3b30027c7e8f | 78 | * Callback functions prototypes |
Javier117 | 8:3b30027c7e8f | 79 | */ |
Javier117 | 8:3b30027c7e8f | 80 | /*! |
Javier117 | 8:3b30027c7e8f | 81 | * @brief Function to be executed on Radio Tx Done event |
Javier117 | 8:3b30027c7e8f | 82 | */ |
Javier117 | 8:3b30027c7e8f | 83 | void OnTxDone( void ); |
Javier117 | 8:3b30027c7e8f | 84 | |
Javier117 | 8:3b30027c7e8f | 85 | /*! |
Javier117 | 8:3b30027c7e8f | 86 | * @brief Function to be executed on Radio Rx Done event |
Javier117 | 8:3b30027c7e8f | 87 | */ |
Javier117 | 8:3b30027c7e8f | 88 | void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ); |
Javier117 | 8:3b30027c7e8f | 89 | |
Javier117 | 8:3b30027c7e8f | 90 | /*! |
Javier117 | 8:3b30027c7e8f | 91 | * @brief Function executed on Radio Tx Timeout event |
Javier117 | 8:3b30027c7e8f | 92 | */ |
Javier117 | 8:3b30027c7e8f | 93 | void OnTxTimeout( void ); |
Javier117 | 8:3b30027c7e8f | 94 | |
Javier117 | 8:3b30027c7e8f | 95 | /*! |
Javier117 | 8:3b30027c7e8f | 96 | * @brief Function executed on Radio Rx Timeout event |
Javier117 | 8:3b30027c7e8f | 97 | */ |
Javier117 | 8:3b30027c7e8f | 98 | void OnRxTimeout( void ); |
Javier117 | 8:3b30027c7e8f | 99 | |
Javier117 | 8:3b30027c7e8f | 100 | /*! |
Javier117 | 8:3b30027c7e8f | 101 | * @brief Function executed on Radio Rx Error event |
Javier117 | 8:3b30027c7e8f | 102 | */ |
Javier117 | 8:3b30027c7e8f | 103 | void OnRxError( void ); |
Javier117 | 8:3b30027c7e8f | 104 | |
Javier117 | 8:3b30027c7e8f | 105 | /*! |
Javier117 | 8:3b30027c7e8f | 106 | * @brief Function executed on Radio Fhss Change Channel event |
Javier117 | 8:3b30027c7e8f | 107 | */ |
Javier117 | 8:3b30027c7e8f | 108 | void OnFhssChangeChannel( uint8_t channelIndex ); |
Javier117 | 8:3b30027c7e8f | 109 | |
Javier117 | 8:3b30027c7e8f | 110 | /*! |
Javier117 | 8:3b30027c7e8f | 111 | * @brief Function executed on CAD Done event |
Javier117 | 8:3b30027c7e8f | 112 | */ |
Javier117 | 8:3b30027c7e8f | 113 | void OnCadDone( void ); |
Javier117 | 8:3b30027c7e8f | 114 | |
Javier117 | 8:3b30027c7e8f | 115 | #endif // __MAIN_H__ |