LR Initial Publish

Dependencies:   X_NUCLEO_IKS01A2 driver_mbed_TH02 mbed LoRaWAN-lib-v1_0_1 SX1272Lib

Fork of Training-Aug2018-SX1272-X-NUCLEO-IKS01A2 by Uttam Bhat

Revision:
0:6cc76d70e2a1
Child:
4:d49b89361b67
diff -r 000000000000 -r 6cc76d70e2a1 app/LoRaEventProc.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/LoRaEventProc.h	Thu Apr 06 21:59:50 2017 +0000
@@ -0,0 +1,53 @@
+/*
+ / _____)             _              | |
+( (____  _____ ____ _| |_ _____  ____| |__
+ \____ \| ___ |    (_   _) ___ |/ ___)  _ \
+ _____) ) ____| | | || |_| ____( (___| | | |
+(______/|_____)_|_|_| \__)_____)\____)_| |_|
+    (C)2015 Semtech
+
+Description: Define events during Join, Tx & Rx
+            Prepare TX packet by appending with appropriate application data
+
+License: Revised BSD License, see LICENSE.TXT file include in the project
+
+Maintainer: Uttam Bhat
+*/
+
+#ifndef __LORA_EVENT_PROC_H__
+#define __LORA_EVENT_PROC_H__
+
+#include "board.h"
+#include "LoRaApp.h"
+#include "LoRaDeviceStateProc.h"
+
+#define APP_TX_DUTYCYCLE_RND                        1000000
+
+/*!
+ * \brief   Prepares the payload of the frame specific to the application port
+ *
+ * \param [IN] port application port 
+ */
+void PrepareLoRaFrame( uint8_t port );
+
+/*!
+ * \brief   Prepares the payload of the frame based on application port
+ */
+void InitNextTxInterrupt( uint8_t port );
+
+/*!
+ * \brief  Define action during the Network Join process: Blink, Toggle or Set LED ON
+ */
+void JoinEvent( void );
+
+/*!
+ * \brief  Define action during the Transmit process: Blink, Toggle or Set LED ON
+ */
+void TxEvent( void );
+
+/*!
+ * \brief  Define action when downlink received: Blink, Toggle or Set LED ON
+ */
+void RxEvent( void );
+
+#endif // __LORA_EVENT_PROC_H__