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 Semtech

Committer:
Benedict_Tizzano
Date:
Fri Mar 30 19:02:45 2018 +0000
Revision:
19:e136bd75eabd
Parent:
18:18408c3c2d0c
mQ Branch

Who changed what in which revision?

UserRevisionLine numberNew 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"
mluis 18:18408c3c2d0c 22 #include "LoRaDeviceStateProc.h"
ubhat 0:69f2e28d12c1 23
mluis 18:18408c3c2d0c 24 #define COMPLIANCE_TX_DUTYCYCLE 5000 // 5sec
ubhat 0:69f2e28d12c1 25
ubhat 0:69f2e28d12c1 26 struct ComplianceTest_s
ubhat 0:69f2e28d12c1 27 {
ubhat 0:69f2e28d12c1 28 bool Running;
ubhat 0:69f2e28d12c1 29 uint8_t State;
ubhat 0:69f2e28d12c1 30 bool IsTxConfirmed;
ubhat 0:69f2e28d12c1 31 uint8_t AppPort;
ubhat 0:69f2e28d12c1 32 uint8_t AppDataSize;
ubhat 0:69f2e28d12c1 33 uint8_t *AppDataBuffer;
ubhat 0:69f2e28d12c1 34 uint16_t DownLinkCounter;
ubhat 0:69f2e28d12c1 35 bool LinkCheck;
ubhat 0:69f2e28d12c1 36 uint8_t DemodMargin;
ubhat 0:69f2e28d12c1 37 uint8_t NbGateways;
ubhat 0:69f2e28d12c1 38 };
ubhat 0:69f2e28d12c1 39
ubhat 0:69f2e28d12c1 40 extern ComplianceTest_s ComplianceTest;
ubhat 0:69f2e28d12c1 41
mluis 18:18408c3c2d0c 42 void PrepareComplianceTestFrame( McpsIndication_t *mcpsIndication );
ubhat 0:69f2e28d12c1 43 void RunComplianceTest( void );
mluis 18:18408c3c2d0c 44 void DisableComplianceTest( void );
ubhat 0:69f2e28d12c1 45
mluis 18:18408c3c2d0c 46 #endif // __COMPLIANCE_H__