LR Initial Publish
Dependencies: X_NUCLEO_IKS01A2 driver_mbed_TH02 mbed LoRaWAN-lib-v1_0_1 SX1272Lib
Fork of Training-Aug2018-SX1272-X-NUCLEO-IKS01A2 by
Diff: app/ComplianceTest.h
- Revision:
- 0:6cc76d70e2a1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/ComplianceTest.h Thu Apr 06 21:59:50 2017 +0000 @@ -0,0 +1,44 @@ +/* + / _____) _ | | +( (____ _____ ____ _| |_ _____ ____| |__ + \____ \| ___ | (_ _) ___ |/ ___) _ \ + _____) ) ____| | | || |_| ____( (___| | | | +(______/|_____)_|_|_| \__)_____)\____)_| |_| + (C)2015 Semtech + +Description: Definition of parameters for Compliance Test + +License: Revised BSD License, see LICENSE.TXT file include in the project + +Maintainer: Miguel Luis and Gregory Cristian +*/ +#ifndef __COMPLIANCE_H__ +#define __COMPLIANCE_H__ + +#include "mbed.h" +#include "Common.h" +#include "Config.h" +#include "LoRaMac.h" + +#define COMPLIANCE_TX_DUTYCYCLE 5000000 // 5sec + +struct ComplianceTest_s +{ + bool Running; + uint8_t State; + bool IsTxConfirmed; + uint8_t AppPort; + uint8_t AppDataSize; + uint8_t *AppDataBuffer; + uint16_t DownLinkCounter; + bool LinkCheck; + uint8_t DemodMargin; + uint8_t NbGateways; +}; + +extern ComplianceTest_s ComplianceTest; + +void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication ); +void RunComplianceTest( void ); + +#endif // __COMPLIANCE_H__ \ No newline at end of file