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
app/LoRaEventProc.h@0:69f2e28d12c1, 2016-05-17 (annotated)
- Committer:
- ubhat
- Date:
- Tue May 17 00:21:55 2016 +0000
- Revision:
- 0:69f2e28d12c1
- Child:
- 5:6ffeac53b7cb
Project for LoRa Bootcamp
Who changed what in which revision?
User | Revision | Line number | New 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 | |
ubhat | 0:69f2e28d12c1 | 24 | /*! |
ubhat | 0:69f2e28d12c1 | 25 | * \brief Prepares the payload of the frame specific to the application port |
ubhat | 0:69f2e28d12c1 | 26 | * |
ubhat | 0:69f2e28d12c1 | 27 | * \param [IN] port application port |
ubhat | 0:69f2e28d12c1 | 28 | */ |
ubhat | 0:69f2e28d12c1 | 29 | void PrepareLoRaFrame( uint8_t port ); |
ubhat | 0:69f2e28d12c1 | 30 | |
ubhat | 0:69f2e28d12c1 | 31 | /*! |
ubhat | 0:69f2e28d12c1 | 32 | * \brief Define action during the Network Join process: Blink, Toggle or Set LED ON |
ubhat | 0:69f2e28d12c1 | 33 | */ |
ubhat | 0:69f2e28d12c1 | 34 | void JoinEvent( void ); |
ubhat | 0:69f2e28d12c1 | 35 | |
ubhat | 0:69f2e28d12c1 | 36 | /*! |
ubhat | 0:69f2e28d12c1 | 37 | * \brief Define action during the Transmit process: Blink, Toggle or Set LED ON |
ubhat | 0:69f2e28d12c1 | 38 | */ |
ubhat | 0:69f2e28d12c1 | 39 | void TxEvent( void ); |
ubhat | 0:69f2e28d12c1 | 40 | |
ubhat | 0:69f2e28d12c1 | 41 | /*! |
ubhat | 0:69f2e28d12c1 | 42 | * \brief Define action when downlink received: Blink, Toggle or Set LED ON |
ubhat | 0:69f2e28d12c1 | 43 | */ |
ubhat | 0:69f2e28d12c1 | 44 | void RxEvent( void ); |
ubhat | 0:69f2e28d12c1 | 45 | |
ubhat | 0:69f2e28d12c1 | 46 | #endif // __LORA_EVENT_PROC_H__ |