LoRa on Multitech with Semtech mote
Dependencies: LoRaWAN-lib SX1272Lib lib_gps lib_mma8451q lib_mpl3115a2 mbed
Fork of LoRaWAN-NAMote72-Application-Demo_Multitech by
app/ComplianceTest.h@18:168062d45093, 2017-01-18 (annotated)
- Committer:
- nagarajkmurthy
- Date:
- Wed Jan 18 12:55:33 2017 +0000
- Revision:
- 18:168062d45093
- Parent:
- 0:69f2e28d12c1
LoRa on Multitech using Semtech mote
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: Definition of parameters for Compliance Test |
ubhat | 0:69f2e28d12c1 | 10 | |
ubhat | 0:69f2e28d12c1 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
ubhat | 0:69f2e28d12c1 | 12 | |
ubhat | 0:69f2e28d12c1 | 13 | Maintainer: Miguel Luis and Gregory Cristian |
ubhat | 0:69f2e28d12c1 | 14 | */ |
ubhat | 0:69f2e28d12c1 | 15 | #ifndef __COMPLIANCE_H__ |
ubhat | 0:69f2e28d12c1 | 16 | #define __COMPLIANCE_H__ |
ubhat | 0:69f2e28d12c1 | 17 | |
ubhat | 0:69f2e28d12c1 | 18 | #include "mbed.h" |
ubhat | 0:69f2e28d12c1 | 19 | #include "Common.h" |
ubhat | 0:69f2e28d12c1 | 20 | #include "Config.h" |
ubhat | 0:69f2e28d12c1 | 21 | #include "LoRaMac.h" |
ubhat | 0:69f2e28d12c1 | 22 | |
ubhat | 0:69f2e28d12c1 | 23 | #define COMPLIANCE_TX_DUTYCYCLE 5000000 // 5sec |
ubhat | 0:69f2e28d12c1 | 24 | |
ubhat | 0:69f2e28d12c1 | 25 | struct ComplianceTest_s |
ubhat | 0:69f2e28d12c1 | 26 | { |
ubhat | 0:69f2e28d12c1 | 27 | bool Running; |
ubhat | 0:69f2e28d12c1 | 28 | uint8_t State; |
ubhat | 0:69f2e28d12c1 | 29 | bool IsTxConfirmed; |
ubhat | 0:69f2e28d12c1 | 30 | uint8_t AppPort; |
ubhat | 0:69f2e28d12c1 | 31 | uint8_t AppDataSize; |
ubhat | 0:69f2e28d12c1 | 32 | uint8_t *AppDataBuffer; |
ubhat | 0:69f2e28d12c1 | 33 | uint16_t DownLinkCounter; |
ubhat | 0:69f2e28d12c1 | 34 | bool LinkCheck; |
ubhat | 0:69f2e28d12c1 | 35 | uint8_t DemodMargin; |
ubhat | 0:69f2e28d12c1 | 36 | uint8_t NbGateways; |
ubhat | 0:69f2e28d12c1 | 37 | }; |
ubhat | 0:69f2e28d12c1 | 38 | |
ubhat | 0:69f2e28d12c1 | 39 | extern ComplianceTest_s ComplianceTest; |
ubhat | 0:69f2e28d12c1 | 40 | |
ubhat | 0:69f2e28d12c1 | 41 | void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication ); |
ubhat | 0:69f2e28d12c1 | 42 | void RunComplianceTest( void ); |
ubhat | 0:69f2e28d12c1 | 43 | |
ubhat | 0:69f2e28d12c1 | 44 | #endif // __COMPLIANCE_H__ |