projet-lievres
/
lora-project
Code du projet lièvres pour LoRa
main.h@4:954ae88b6664, 2016-10-10 (annotated)
- Committer:
- aGoelzer
- Date:
- Mon Oct 10 13:16:16 2016 +0000
- Revision:
- 4:954ae88b6664
Code pour recevoir et transmettre des messages en Lora
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aGoelzer | 4:954ae88b6664 | 1 | /* |
aGoelzer | 4:954ae88b6664 | 2 | / _____) _ | | |
aGoelzer | 4:954ae88b6664 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
aGoelzer | 4:954ae88b6664 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
aGoelzer | 4:954ae88b6664 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
aGoelzer | 4:954ae88b6664 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
aGoelzer | 4:954ae88b6664 | 7 | ( C )2014 Semtech |
aGoelzer | 4:954ae88b6664 | 8 | |
aGoelzer | 4:954ae88b6664 | 9 | Description: Contains the callbacks for the IRQs and any application related details |
aGoelzer | 4:954ae88b6664 | 10 | |
aGoelzer | 4:954ae88b6664 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
aGoelzer | 4:954ae88b6664 | 12 | |
aGoelzer | 4:954ae88b6664 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
aGoelzer | 4:954ae88b6664 | 14 | */ |
aGoelzer | 4:954ae88b6664 | 15 | #ifndef __MAIN_H__ |
aGoelzer | 4:954ae88b6664 | 16 | #define __MAIN_H__ |
aGoelzer | 4:954ae88b6664 | 17 | |
aGoelzer | 4:954ae88b6664 | 18 | /* |
aGoelzer | 4:954ae88b6664 | 19 | * Callback functions prototypes |
aGoelzer | 4:954ae88b6664 | 20 | */ |
aGoelzer | 4:954ae88b6664 | 21 | /*! |
aGoelzer | 4:954ae88b6664 | 22 | * @brief Function to be executed on Radio Tx Done event |
aGoelzer | 4:954ae88b6664 | 23 | */ |
aGoelzer | 4:954ae88b6664 | 24 | void OnTxDone( void ); |
aGoelzer | 4:954ae88b6664 | 25 | |
aGoelzer | 4:954ae88b6664 | 26 | /*! |
aGoelzer | 4:954ae88b6664 | 27 | * @brief Function to be executed on Radio Rx Done event |
aGoelzer | 4:954ae88b6664 | 28 | */ |
aGoelzer | 4:954ae88b6664 | 29 | void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ); |
aGoelzer | 4:954ae88b6664 | 30 | |
aGoelzer | 4:954ae88b6664 | 31 | /*! |
aGoelzer | 4:954ae88b6664 | 32 | * @brief Function executed on Radio Tx Timeout event |
aGoelzer | 4:954ae88b6664 | 33 | */ |
aGoelzer | 4:954ae88b6664 | 34 | void OnTxTimeout( void ); |
aGoelzer | 4:954ae88b6664 | 35 | |
aGoelzer | 4:954ae88b6664 | 36 | /*! |
aGoelzer | 4:954ae88b6664 | 37 | * @brief Function executed on Radio Rx Timeout event |
aGoelzer | 4:954ae88b6664 | 38 | */ |
aGoelzer | 4:954ae88b6664 | 39 | void OnRxTimeout( void ); |
aGoelzer | 4:954ae88b6664 | 40 | |
aGoelzer | 4:954ae88b6664 | 41 | /*! |
aGoelzer | 4:954ae88b6664 | 42 | * @brief Function executed on Radio Rx Error event |
aGoelzer | 4:954ae88b6664 | 43 | */ |
aGoelzer | 4:954ae88b6664 | 44 | void OnRxError( void ); |
aGoelzer | 4:954ae88b6664 | 45 | |
aGoelzer | 4:954ae88b6664 | 46 | /*! |
aGoelzer | 4:954ae88b6664 | 47 | * @brief Function executed on Radio Fhss Change Channel event |
aGoelzer | 4:954ae88b6664 | 48 | */ |
aGoelzer | 4:954ae88b6664 | 49 | void OnFhssChangeChannel( uint8_t channelIndex ); |
aGoelzer | 4:954ae88b6664 | 50 | |
aGoelzer | 4:954ae88b6664 | 51 | /*! |
aGoelzer | 4:954ae88b6664 | 52 | * @brief Function executed on CAD Done event |
aGoelzer | 4:954ae88b6664 | 53 | */ |
aGoelzer | 4:954ae88b6664 | 54 | void OnCadDone( void ); |
aGoelzer | 4:954ae88b6664 | 55 | |
aGoelzer | 4:954ae88b6664 | 56 | void SendStr(char* str); |
aGoelzer | 4:954ae88b6664 | 57 | |
aGoelzer | 4:954ae88b6664 | 58 | #endif // __MAIN_H__ |