1
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
app/ComplianceTest.h@8:88e8a1c7b88a, 2018-11-09 (annotated)
- Committer:
- emerette
- Date:
- Fri Nov 09 21:52:19 2018 +0000
- Revision:
- 8:88e8a1c7b88a
- Parent:
- 0:42863a11464a
1
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: Definition of parameters for Compliance Test |
ubhat | 0:42863a11464a | 10 | |
ubhat | 0:42863a11464a | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
ubhat | 0:42863a11464a | 12 | |
ubhat | 0:42863a11464a | 13 | Maintainer: Miguel Luis and Gregory Cristian |
ubhat | 0:42863a11464a | 14 | */ |
ubhat | 0:42863a11464a | 15 | #ifndef __COMPLIANCE_H__ |
ubhat | 0:42863a11464a | 16 | #define __COMPLIANCE_H__ |
ubhat | 0:42863a11464a | 17 | |
ubhat | 0:42863a11464a | 18 | #include "mbed.h" |
ubhat | 0:42863a11464a | 19 | #include "Common.h" |
ubhat | 0:42863a11464a | 20 | #include "Config.h" |
ubhat | 0:42863a11464a | 21 | #include "LoRaMac.h" |
ubhat | 0:42863a11464a | 22 | |
ubhat | 0:42863a11464a | 23 | #define COMPLIANCE_TX_DUTYCYCLE 5000000 // 5sec |
ubhat | 0:42863a11464a | 24 | |
ubhat | 0:42863a11464a | 25 | struct ComplianceTest_s |
ubhat | 0:42863a11464a | 26 | { |
ubhat | 0:42863a11464a | 27 | bool Running; |
ubhat | 0:42863a11464a | 28 | uint8_t State; |
ubhat | 0:42863a11464a | 29 | bool IsTxConfirmed; |
ubhat | 0:42863a11464a | 30 | uint8_t AppPort; |
ubhat | 0:42863a11464a | 31 | uint8_t AppDataSize; |
ubhat | 0:42863a11464a | 32 | uint8_t *AppDataBuffer; |
ubhat | 0:42863a11464a | 33 | uint16_t DownLinkCounter; |
ubhat | 0:42863a11464a | 34 | bool LinkCheck; |
ubhat | 0:42863a11464a | 35 | uint8_t DemodMargin; |
ubhat | 0:42863a11464a | 36 | uint8_t NbGateways; |
ubhat | 0:42863a11464a | 37 | }; |
ubhat | 0:42863a11464a | 38 | |
ubhat | 0:42863a11464a | 39 | extern ComplianceTest_s ComplianceTest; |
ubhat | 0:42863a11464a | 40 | |
ubhat | 0:42863a11464a | 41 | void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication ); |
ubhat | 0:42863a11464a | 42 | void RunComplianceTest( void ); |
ubhat | 0:42863a11464a | 43 | |
ubhat | 0:42863a11464a | 44 | #endif // __COMPLIANCE_H__ |