mQ Branch for NA mote testing

Dependencies:   LoRaWAN-lib SX1272Lib-mQ lib_gps lib_mma8451q lib_mpl3115a2 mbed

Fork of LoRaWAN-NAMote72-Application-Demo by Semtech

Committer:
Benedict_Tizzano
Date:
Fri Mar 30 19:02:45 2018 +0000
Revision:
19:e136bd75eabd
Parent:
18:18408c3c2d0c
mQ Branch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ubhat 0:69f2e28d12c1 1 /*
ubhat 0:69f2e28d12c1 2 / _____) _ | |
ubhat 0:69f2e28d12c1 3 ( (____ _____ ____ _| |_ _____ ____| |__
ubhat 0:69f2e28d12c1 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
ubhat 0:69f2e28d12c1 5 _____) ) ____| | | || |_| ____( (___| | | |
ubhat 0:69f2e28d12c1 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
ubhat 0:69f2e28d12c1 7 (C)2015 Semtech
ubhat 0:69f2e28d12c1 8
ubhat 0:69f2e28d12c1 9 Description: Define events during Join, Tx & Rx
ubhat 0:69f2e28d12c1 10 Prepare TX packet by appending with appropriate application data
ubhat 0:69f2e28d12c1 11
ubhat 0:69f2e28d12c1 12 License: Revised BSD License, see LICENSE.TXT file include in the project
ubhat 0:69f2e28d12c1 13
ubhat 0:69f2e28d12c1 14 Maintainer: Uttam Bhat
ubhat 0:69f2e28d12c1 15 */
ubhat 0:69f2e28d12c1 16
ubhat 0:69f2e28d12c1 17 #ifndef __LORA_EVENT_PROC_H__
ubhat 0:69f2e28d12c1 18 #define __LORA_EVENT_PROC_H__
ubhat 0:69f2e28d12c1 19
ubhat 0:69f2e28d12c1 20 #include "board.h"
ubhat 0:69f2e28d12c1 21 #include "LoRaApp.h"
ubhat 0:69f2e28d12c1 22 #include "LoRaDeviceStateProc.h"
ubhat 0:69f2e28d12c1 23
mluis 18:18408c3c2d0c 24 #define APP_TX_DUTYCYCLE_RND 1000 // value in ms
ubhat 5:6ffeac53b7cb 25
ubhat 0:69f2e28d12c1 26 /*!
ubhat 0:69f2e28d12c1 27 * \brief Prepares the payload of the frame specific to the application port
ubhat 0:69f2e28d12c1 28 *
ubhat 0:69f2e28d12c1 29 * \param [IN] port application port
ubhat 0:69f2e28d12c1 30 */
ubhat 0:69f2e28d12c1 31 void PrepareLoRaFrame( uint8_t port );
ubhat 0:69f2e28d12c1 32
ubhat 0:69f2e28d12c1 33 /*!
ubhat 5:6ffeac53b7cb 34 * \brief Prepares the payload of the frame based on application port
ubhat 5:6ffeac53b7cb 35 */
ubhat 5:6ffeac53b7cb 36 void InitNextTxInterrupt( uint8_t port );
ubhat 5:6ffeac53b7cb 37
ubhat 5:6ffeac53b7cb 38 /*!
ubhat 0:69f2e28d12c1 39 * \brief Define action during the Network Join process: Blink, Toggle or Set LED ON
ubhat 0:69f2e28d12c1 40 */
ubhat 0:69f2e28d12c1 41 void JoinEvent( void );
ubhat 0:69f2e28d12c1 42
ubhat 0:69f2e28d12c1 43 /*!
ubhat 0:69f2e28d12c1 44 * \brief Define action during the Transmit process: Blink, Toggle or Set LED ON
ubhat 0:69f2e28d12c1 45 */
ubhat 0:69f2e28d12c1 46 void TxEvent( void );
ubhat 0:69f2e28d12c1 47
ubhat 0:69f2e28d12c1 48 /*!
ubhat 0:69f2e28d12c1 49 * \brief Define action when downlink received: Blink, Toggle or Set LED ON
ubhat 0:69f2e28d12c1 50 */
ubhat 0:69f2e28d12c1 51 void RxEvent( void );
ubhat 0:69f2e28d12c1 52
ubhat 0:69f2e28d12c1 53 #endif // __LORA_EVENT_PROC_H__