RadioShuttle Lib for the STM32 L4 Heltec Board
Dependents: Turtle_RadioShuttle
examples/GenericPingPong.h@0:0c31756924a2, 2019-02-06 (annotated)
- Committer:
- Helmut64
- Date:
- Wed Feb 06 15:26:48 2019 +0000
- Revision:
- 0:0c31756924a2
- Child:
- 4:a8f05e003e88
new lib
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Helmut64 | 0:0c31756924a2 | 1 | /* |
Helmut64 | 0:0c31756924a2 | 2 | / _____) _ | | |
Helmut64 | 0:0c31756924a2 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
Helmut64 | 0:0c31756924a2 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
Helmut64 | 0:0c31756924a2 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
Helmut64 | 0:0c31756924a2 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
Helmut64 | 0:0c31756924a2 | 7 | ( C )2014 Semtech |
Helmut64 | 0:0c31756924a2 | 8 | |
Helmut64 | 0:0c31756924a2 | 9 | Description: Contains the callbacks for the IRQs and any application related details |
Helmut64 | 0:0c31756924a2 | 10 | |
Helmut64 | 0:0c31756924a2 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
Helmut64 | 0:0c31756924a2 | 12 | |
Helmut64 | 0:0c31756924a2 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
Helmut64 | 0:0c31756924a2 | 14 | */ |
Helmut64 | 0:0c31756924a2 | 15 | #ifndef __SX1276PINGPONG_H__ |
Helmut64 | 0:0c31756924a2 | 16 | #define __SX1276PINGPONG_H__ |
Helmut64 | 0:0c31756924a2 | 17 | |
Helmut64 | 0:0c31756924a2 | 18 | #ifdef FEATURE_LORA |
Helmut64 | 0:0c31756924a2 | 19 | int SX1276PingPong(void); |
Helmut64 | 0:0c31756924a2 | 20 | #else |
Helmut64 | 0:0c31756924a2 | 21 | #define SX1276PingPong(x) void() |
Helmut64 | 0:0c31756924a2 | 22 | #endif |
Helmut64 | 0:0c31756924a2 | 23 | /* |
Helmut64 | 0:0c31756924a2 | 24 | * Callback functions prototypes |
Helmut64 | 0:0c31756924a2 | 25 | */ |
Helmut64 | 0:0c31756924a2 | 26 | /*! |
Helmut64 | 0:0c31756924a2 | 27 | * @brief Function to be executed on Radio Tx Done event |
Helmut64 | 0:0c31756924a2 | 28 | */ |
Helmut64 | 0:0c31756924a2 | 29 | void OnTxDone(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:0c31756924a2 | 30 | |
Helmut64 | 0:0c31756924a2 | 31 | /*! |
Helmut64 | 0:0c31756924a2 | 32 | * @brief Function to be executed on Radio Rx Done event |
Helmut64 | 0:0c31756924a2 | 33 | */ |
Helmut64 | 0:0c31756924a2 | 34 | void OnRxDone(void *radio, void *userThisPtr, void *userData, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ); |
Helmut64 | 0:0c31756924a2 | 35 | |
Helmut64 | 0:0c31756924a2 | 36 | /*! |
Helmut64 | 0:0c31756924a2 | 37 | * @brief Function executed on Radio Tx Timeout event |
Helmut64 | 0:0c31756924a2 | 38 | */ |
Helmut64 | 0:0c31756924a2 | 39 | void OnTxTimeout(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:0c31756924a2 | 40 | |
Helmut64 | 0:0c31756924a2 | 41 | /*! |
Helmut64 | 0:0c31756924a2 | 42 | * @brief Function executed on Radio Rx Timeout event |
Helmut64 | 0:0c31756924a2 | 43 | */ |
Helmut64 | 0:0c31756924a2 | 44 | void OnRxTimeout(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:0c31756924a2 | 45 | |
Helmut64 | 0:0c31756924a2 | 46 | /*! |
Helmut64 | 0:0c31756924a2 | 47 | * @brief Function executed on Radio Rx Error event |
Helmut64 | 0:0c31756924a2 | 48 | */ |
Helmut64 | 0:0c31756924a2 | 49 | void OnRxError(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:0c31756924a2 | 50 | |
Helmut64 | 0:0c31756924a2 | 51 | /*! |
Helmut64 | 0:0c31756924a2 | 52 | * @brief Function executed on Radio Fhss Change Channel event |
Helmut64 | 0:0c31756924a2 | 53 | */ |
Helmut64 | 0:0c31756924a2 | 54 | void OnFhssChangeChannel(void *radio, void *userThisPtr, void *userData, uint8_t channelIndex ); |
Helmut64 | 0:0c31756924a2 | 55 | |
Helmut64 | 0:0c31756924a2 | 56 | /*! |
Helmut64 | 0:0c31756924a2 | 57 | * @brief Function executed on CAD Done event |
Helmut64 | 0:0c31756924a2 | 58 | */ |
Helmut64 | 0:0c31756924a2 | 59 | void OnCadDone(void *radio, void *userThisPtr, void *userDataco); |
Helmut64 | 0:0c31756924a2 | 60 | |
Helmut64 | 0:0c31756924a2 | 61 | #endif // __MAIN_H__ |