Semtech / LoRaWAN-NAMote72-Application-Demo

Dependencies:   LoRaWAN-lib mbed lib_mpl3115a2 lib_mma8451q lib_gps SX1272Lib

Dependents:   LoRaWAN-NAMote72-BVS-confirmed-tester-0-7v1_copy

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LoRaEventProc.h Source File

LoRaEventProc.h

00001 /*
00002  / _____)             _              | |
00003 ( (____  _____ ____ _| |_ _____  ____| |__
00004  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
00005  _____) ) ____| | | || |_| ____( (___| | | |
00006 (______/|_____)_|_|_| \__)_____)\____)_| |_|
00007     (C)2015 Semtech
00008 
00009 Description: Define events during Join, Tx & Rx
00010             Prepare TX packet by appending with appropriate application data
00011 
00012 License: Revised BSD License, see LICENSE.TXT file include in the project
00013 
00014 Maintainer: Uttam Bhat
00015 */
00016 
00017 #ifndef __LORA_EVENT_PROC_H__
00018 #define __LORA_EVENT_PROC_H__
00019 
00020 #include "board.h"
00021 #include "LoRaApp.h"
00022 #include "LoRaDeviceStateProc.h"
00023 
00024 #define APP_TX_DUTYCYCLE_RND                        1000 // value in ms
00025 
00026 /*!
00027  * \brief   Prepares the payload of the frame specific to the application port
00028  *
00029  * \param [IN] port application port 
00030  */
00031 void PrepareLoRaFrame( uint8_t port );
00032 
00033 /*!
00034  * \brief   Prepares the payload of the frame based on application port
00035  */
00036 void InitNextTxInterrupt( uint8_t port );
00037 
00038 /*!
00039  * \brief  Define action during the Network Join process: Blink, Toggle or Set LED ON
00040  */
00041 void JoinEvent( void );
00042 
00043 /*!
00044  * \brief  Define action during the Transmit process: Blink, Toggle or Set LED ON
00045  */
00046 void TxEvent( void );
00047 
00048 /*!
00049  * \brief  Define action when downlink received: Blink, Toggle or Set LED ON
00050  */
00051 void RxEvent( void );
00052 
00053 #endif // __LORA_EVENT_PROC_H__