1
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
app/LoRaEventProc.h@6:711a4e008afa, 2017-11-28 (annotated)
- Committer:
- ubhat
- Date:
- Tue Nov 28 08:20:09 2017 +0000
- Revision:
- 6:711a4e008afa
- Parent:
- 0:42863a11464a
- Child:
- 7:730764a067dc
Create project for case study using SX1276 shield
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ubhat | 0:42863a11464a | 1 | /* |
ubhat | 0:42863a11464a | 2 | / _____) _ | | |
ubhat | 0:42863a11464a | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
ubhat | 0:42863a11464a | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
ubhat | 0:42863a11464a | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
ubhat | 0:42863a11464a | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
ubhat | 0:42863a11464a | 7 | (C)2015 Semtech |
ubhat | 0:42863a11464a | 8 | |
ubhat | 0:42863a11464a | 9 | Description: Define events during Join, Tx & Rx |
ubhat | 0:42863a11464a | 10 | Prepare TX packet by appending with appropriate application data |
ubhat | 0:42863a11464a | 11 | |
ubhat | 0:42863a11464a | 12 | License: Revised BSD License, see LICENSE.TXT file include in the project |
ubhat | 0:42863a11464a | 13 | |
ubhat | 0:42863a11464a | 14 | Maintainer: Uttam Bhat |
ubhat | 0:42863a11464a | 15 | */ |
ubhat | 0:42863a11464a | 16 | |
ubhat | 0:42863a11464a | 17 | #ifndef __LORA_EVENT_PROC_H__ |
ubhat | 0:42863a11464a | 18 | #define __LORA_EVENT_PROC_H__ |
ubhat | 0:42863a11464a | 19 | |
ubhat | 0:42863a11464a | 20 | #include "board.h" |
ubhat | 0:42863a11464a | 21 | #include "LoRaApp.h" |
ubhat | 0:42863a11464a | 22 | #include "LoRaDeviceStateProc.h" |
ubhat | 0:42863a11464a | 23 | |
ubhat | 0:42863a11464a | 24 | /*! |
ubhat | 0:42863a11464a | 25 | * \brief Prepares the payload of the frame specific to the application port |
ubhat | 0:42863a11464a | 26 | * |
ubhat | 0:42863a11464a | 27 | * \param [IN] port application port |
ubhat | 0:42863a11464a | 28 | */ |
ubhat | 0:42863a11464a | 29 | void PrepareLoRaFrame( uint8_t port ); |
ubhat | 0:42863a11464a | 30 | |
ubhat | 0:42863a11464a | 31 | /*! |
ubhat | 0:42863a11464a | 32 | * \brief Prepares the payload of the frame based on application port |
ubhat | 0:42863a11464a | 33 | */ |
ubhat | 0:42863a11464a | 34 | void InitNextTxInterrupt( uint8_t port ); |
ubhat | 0:42863a11464a | 35 | |
ubhat | 0:42863a11464a | 36 | /*! |
ubhat | 0:42863a11464a | 37 | * \brief Define action during the Network Join process: Blink, Toggle or Set LED ON |
ubhat | 0:42863a11464a | 38 | */ |
ubhat | 0:42863a11464a | 39 | void JoinEvent( void ); |
ubhat | 0:42863a11464a | 40 | |
ubhat | 0:42863a11464a | 41 | /*! |
ubhat | 0:42863a11464a | 42 | * \brief Define action during the Transmit process: Blink, Toggle or Set LED ON |
ubhat | 0:42863a11464a | 43 | */ |
ubhat | 0:42863a11464a | 44 | void TxEvent( void ); |
ubhat | 0:42863a11464a | 45 | |
ubhat | 0:42863a11464a | 46 | /*! |
ubhat | 0:42863a11464a | 47 | * \brief Define action when downlink received: Blink, Toggle or Set LED ON |
ubhat | 0:42863a11464a | 48 | */ |
ubhat | 0:42863a11464a | 49 | void RxEvent( void ); |
ubhat | 0:42863a11464a | 50 | |
ubhat | 6:711a4e008afa | 51 | void InitDutyCycleTimer( void ); |
ubhat | 6:711a4e008afa | 52 | |
ubhat | 0:42863a11464a | 53 | #endif // __LORA_EVENT_PROC_H__ |