This is the code for the STM32L072 in order to read from LoRa and pass data through serial

Dependencies:   BufferedSerial SX1276GenericLib mbed

Fork of TRANSMITTER by gabrio gabrio

Committer:
gabrio
Date:
Wed May 30 14:32:32 2018 +0000
Revision:
5:ca1d34b8923d
Parent:
3:e2ca3bc926e2

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gabrio 0:acd8e2ba10c5 1 /*
gabrio 0:acd8e2ba10c5 2 / _____) _ | |
gabrio 0:acd8e2ba10c5 3 ( (____ _____ ____ _| |_ _____ ____| |__
gabrio 0:acd8e2ba10c5 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
gabrio 0:acd8e2ba10c5 5 _____) ) ____| | | || |_| ____( (___| | | |
gabrio 0:acd8e2ba10c5 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
gabrio 0:acd8e2ba10c5 7 ( C )2014 Semtech
gabrio 0:acd8e2ba10c5 8
gabrio 0:acd8e2ba10c5 9 Description: Contains the callbacks for the IRQs and any application related details
gabrio 0:acd8e2ba10c5 10
gabrio 0:acd8e2ba10c5 11 License: Revised BSD License, see LICENSE.TXT file include in the project
gabrio 0:acd8e2ba10c5 12
gabrio 0:acd8e2ba10c5 13 Maintainer: Miguel Luis and Gregory Cristian
gabrio 0:acd8e2ba10c5 14 */
gabrio 0:acd8e2ba10c5 15
gabrio 0:acd8e2ba10c5 16 /*
gabrio 0:acd8e2ba10c5 17 * This file contains a copy of the master content sx1276PingPong
gabrio 0:acd8e2ba10c5 18 * with adaption for the SX1276Generic environment
gabrio 0:acd8e2ba10c5 19 * (c) 2017 Helmut Tschemernjak
gabrio 0:acd8e2ba10c5 20 * 30826 Garbsen (Hannover) Germany
gabrio 0:acd8e2ba10c5 21 */
gabrio 0:acd8e2ba10c5 22
gabrio 0:acd8e2ba10c5 23 #ifndef __SX1276PINGPONG_H__
gabrio 0:acd8e2ba10c5 24 #define __SX1276PINGPONG_H__
gabrio 0:acd8e2ba10c5 25
gabrio 0:acd8e2ba10c5 26 #ifdef FEATURE_LORA
gabrio 3:e2ca3bc926e2 27 int Receiver(void);
gabrio 0:acd8e2ba10c5 28 #else
gabrio 0:acd8e2ba10c5 29 #define Transmitter(x) void()
gabrio 0:acd8e2ba10c5 30 #endif
gabrio 0:acd8e2ba10c5 31 /*
gabrio 0:acd8e2ba10c5 32 * Callback functions prototypes
gabrio 0:acd8e2ba10c5 33 */
gabrio 0:acd8e2ba10c5 34 /*!
gabrio 0:acd8e2ba10c5 35 * @brief Function to be executed on Radio Tx Done event
gabrio 0:acd8e2ba10c5 36 */
gabrio 0:acd8e2ba10c5 37 void OnTxDone(void *radio, void *userThisPtr, void *userData);
gabrio 0:acd8e2ba10c5 38
gabrio 0:acd8e2ba10c5 39 /*!
gabrio 0:acd8e2ba10c5 40 * @brief Function to be executed on Radio Rx Done event
gabrio 0:acd8e2ba10c5 41 */
gabrio 0:acd8e2ba10c5 42 void OnRxDone(void *radio, void *userThisPtr, void *userData, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr );
gabrio 0:acd8e2ba10c5 43
gabrio 0:acd8e2ba10c5 44 /*!
gabrio 0:acd8e2ba10c5 45 * @brief Function executed on Radio Tx Timeout event
gabrio 0:acd8e2ba10c5 46 */
gabrio 0:acd8e2ba10c5 47 void OnTxTimeout(void *radio, void *userThisPtr, void *userData);
gabrio 0:acd8e2ba10c5 48
gabrio 0:acd8e2ba10c5 49 /*!
gabrio 0:acd8e2ba10c5 50 * @brief Function executed on Radio Rx Timeout event
gabrio 0:acd8e2ba10c5 51 */
gabrio 0:acd8e2ba10c5 52 void OnRxTimeout(void *radio, void *userThisPtr, void *userData);
gabrio 0:acd8e2ba10c5 53
gabrio 0:acd8e2ba10c5 54 /*!
gabrio 0:acd8e2ba10c5 55 * @brief Function executed on Radio Rx Error event
gabrio 0:acd8e2ba10c5 56 */
gabrio 0:acd8e2ba10c5 57 void OnRxError(void *radio, void *userThisPtr, void *userData);
gabrio 0:acd8e2ba10c5 58
gabrio 0:acd8e2ba10c5 59 /*!
gabrio 0:acd8e2ba10c5 60 * @brief Function executed on Radio Fhss Change Channel event
gabrio 0:acd8e2ba10c5 61 */
gabrio 0:acd8e2ba10c5 62 void OnFhssChangeChannel(void *radio, void *userThisPtr, void *userData, uint8_t channelIndex);
gabrio 0:acd8e2ba10c5 63
gabrio 0:acd8e2ba10c5 64 /*!
gabrio 0:acd8e2ba10c5 65 * @brief Function executed on CAD Done event
gabrio 0:acd8e2ba10c5 66 */
gabrio 0:acd8e2ba10c5 67 void OnCadDone(void *radio, void *userThisPtr, void *userData);
gabrio 0:acd8e2ba10c5 68
gabrio 0:acd8e2ba10c5 69 #endif // __MAIN_H__