ping pong lora to coragem
main.h@14:ab6eecd44b7a, 2017-04-24 (annotated)
- Committer:
- mluis
- Date:
- Mon Apr 24 09:29:13 2017 +0000
- Revision:
- 14:ab6eecd44b7a
- Parent:
- 6:44752b4f8ab1
WARNING: Radio API timings changed from micro-seconds to milliseconds; ; Updated SX1272Lib and mbed libraries to the latest versions
Who changed what in which revision?
User | Revision | Line number | New 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 | |
mluis | 14:ab6eecd44b7a | 56 | #endif // __MAIN_H__ |