Fork of the Simple Ping-Pong demo application between two SX1272MB2xAs demo board. It's now a simple application demonstrating simple Rx (Receive) from a SX1272 boards.

Dependencies:   SX1272Lib mbed

Fork of SX1272PingPong by Semtech

Committer:
Antoine38
Date:
Sat Apr 01 21:46:33 2017 +0000
Revision:
21:03a7d7429cd1
Parent:
16:263c47d59beb
Optimization of received message + conversion (magic formula)

Who changed what in which revision?

UserRevisionLine numberNew 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
Antoine38 16:263c47d59beb 14 Last update: Antoine Boisadam
GregCr 4:5ece30264cd9 15 */
GregCr 4:5ece30264cd9 16 #ifndef __MAIN_H__
GregCr 4:5ece30264cd9 17 #define __MAIN_H__
GregCr 4:5ece30264cd9 18
GregCr 4:5ece30264cd9 19 /*
GregCr 4:5ece30264cd9 20 * Callback functions prototypes
GregCr 4:5ece30264cd9 21 */
GregCr 4:5ece30264cd9 22
GregCr 4:5ece30264cd9 23 /*!
GregCr 4:5ece30264cd9 24 * @brief Function to be executed on Radio Rx Done event
GregCr 4:5ece30264cd9 25 */
GregCr 4:5ece30264cd9 26 void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
GregCr 4:5ece30264cd9 27
GregCr 4:5ece30264cd9 28 /*!
GregCr 4:5ece30264cd9 29 * @brief Function executed on Radio Rx Timeout event
GregCr 4:5ece30264cd9 30 */
GregCr 4:5ece30264cd9 31 void OnRxTimeout( void );
GregCr 4:5ece30264cd9 32
GregCr 4:5ece30264cd9 33 /*!
GregCr 4:5ece30264cd9 34 * @brief Function executed on Radio Rx Error event
GregCr 4:5ece30264cd9 35 */
GregCr 4:5ece30264cd9 36 void OnRxError( void );
GregCr 4:5ece30264cd9 37
GregCr 4:5ece30264cd9 38 /*!
Antoine38 21:03a7d7429cd1 39 * @brief Function which convert a unint8 to float
GregCr 4:5ece30264cd9 40 */
Antoine38 21:03a7d7429cd1 41 float u8_to_float(uint8_t x, bool isTemp);
GregCr 4:5ece30264cd9 42
GregCr 4:5ece30264cd9 43 /*!
Antoine38 21:03a7d7429cd1 44 * @brief function that print payload data
GregCr 4:5ece30264cd9 45 */
Antoine38 21:03a7d7429cd1 46 void retrieve_data(uint8_t * payload);
Antoine38 21:03a7d7429cd1 47
Antoine38 21:03a7d7429cd1 48 /*!
Antoine38 21:03a7d7429cd1 49 * @brief function that convert an encoded measurement into is real value
Antoine38 21:03a7d7429cd1 50 */
Antoine38 21:03a7d7429cd1 51 void convert(uint8_t m, uint8_t t);
GregCr 4:5ece30264cd9 52
GregCr 4:5ece30264cd9 53 #endif // __MAIN_H__