Nagaraj Krishnamurthy / LoRaWAN-NAMote72-Application-Demo_IoTium

Dependencies:   LoRaWAN-lib SX1272Lib lib_gps lib_mma8451q lib_mpl3115a2 mbed

Fork of LoRaWAN-NAMote72-Application-Demo_Multitech by Nagaraj Krishnamurthy

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ComplianceTest.h Source File

ComplianceTest.h

00001 /*
00002  / _____)             _              | |
00003 ( (____  _____ ____ _| |_ _____  ____| |__
00004  \____ \| ___ |    (_   _) ___ |/ ___)  _ \
00005  _____) ) ____| | | || |_| ____( (___| | | |
00006 (______/|_____)_|_|_| \__)_____)\____)_| |_|
00007     (C)2015 Semtech
00008 
00009 Description: Definition of parameters for Compliance Test
00010 
00011 License: Revised BSD License, see LICENSE.TXT file include in the project
00012 
00013 Maintainer: Miguel Luis and Gregory Cristian
00014 */
00015 #ifndef __COMPLIANCE_H__
00016 #define __COMPLIANCE_H__
00017 
00018 #include "mbed.h"
00019 #include "Common.h"
00020 #include "Config.h"
00021 #include "LoRaMac.h"
00022 
00023 #define COMPLIANCE_TX_DUTYCYCLE 5000000 // 5sec
00024 
00025 struct ComplianceTest_s
00026 {
00027     bool Running;
00028     uint8_t State;
00029     bool IsTxConfirmed;
00030     uint8_t AppPort;
00031     uint8_t AppDataSize;
00032     uint8_t *AppDataBuffer;
00033     uint16_t DownLinkCounter;
00034     bool LinkCheck;
00035     uint8_t DemodMargin;
00036     uint8_t NbGateways;
00037 };
00038 
00039 extern ComplianceTest_s ComplianceTest;
00040 
00041 void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication );
00042 void RunComplianceTest( void );
00043 
00044 #endif // __COMPLIANCE_H__