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/ComplianceTest.h
- Committer:
- Benedict_Tizzano
- Date:
- 2018-03-30
- Revision:
- 19:e136bd75eabd
- Parent:
- 18:18408c3c2d0c
File content as of revision 19:e136bd75eabd:
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (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" #include "LoRaDeviceStateProc.h" #define COMPLIANCE_TX_DUTYCYCLE 5000 // 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 ); void DisableComplianceTest( void ); #endif // __COMPLIANCE_H__