EEPROM for SX1272

Dependencies:   X_NUCLEO_IKS01A1 driver_mbed_TH02 LoRaWAN-lib-v1_0_1 SX1272Lib mbed

Fork of Canada-SX1272-LoRaWAN-Bootcamp by Uttam Bhat

Committer:
ubhat
Date:
Thu Apr 06 21:59:50 2017 +0000
Revision:
0:6cc76d70e2a1
LoRaWAN SX1272 Application

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ubhat 0:6cc76d70e2a1 1 /*
ubhat 0:6cc76d70e2a1 2 / _____) _ | |
ubhat 0:6cc76d70e2a1 3 ( (____ _____ ____ _| |_ _____ ____| |__
ubhat 0:6cc76d70e2a1 4 \____ \| ___ | (_ _) ___ |/ ___) _ \
ubhat 0:6cc76d70e2a1 5 _____) ) ____| | | || |_| ____( (___| | | |
ubhat 0:6cc76d70e2a1 6 (______/|_____)_|_|_| \__)_____)\____)_| |_|
ubhat 0:6cc76d70e2a1 7 (C)2015 Semtech
ubhat 0:6cc76d70e2a1 8
ubhat 0:6cc76d70e2a1 9 Description: Definition of parameters for Compliance Test
ubhat 0:6cc76d70e2a1 10
ubhat 0:6cc76d70e2a1 11 License: Revised BSD License, see LICENSE.TXT file include in the project
ubhat 0:6cc76d70e2a1 12
ubhat 0:6cc76d70e2a1 13 Maintainer: Miguel Luis and Gregory Cristian
ubhat 0:6cc76d70e2a1 14 */
ubhat 0:6cc76d70e2a1 15 #ifndef __COMPLIANCE_H__
ubhat 0:6cc76d70e2a1 16 #define __COMPLIANCE_H__
ubhat 0:6cc76d70e2a1 17
ubhat 0:6cc76d70e2a1 18 #include "mbed.h"
ubhat 0:6cc76d70e2a1 19 #include "Common.h"
ubhat 0:6cc76d70e2a1 20 #include "Config.h"
ubhat 0:6cc76d70e2a1 21 #include "LoRaMac.h"
ubhat 0:6cc76d70e2a1 22
ubhat 0:6cc76d70e2a1 23 #define COMPLIANCE_TX_DUTYCYCLE 5000000 // 5sec
ubhat 0:6cc76d70e2a1 24
ubhat 0:6cc76d70e2a1 25 struct ComplianceTest_s
ubhat 0:6cc76d70e2a1 26 {
ubhat 0:6cc76d70e2a1 27 bool Running;
ubhat 0:6cc76d70e2a1 28 uint8_t State;
ubhat 0:6cc76d70e2a1 29 bool IsTxConfirmed;
ubhat 0:6cc76d70e2a1 30 uint8_t AppPort;
ubhat 0:6cc76d70e2a1 31 uint8_t AppDataSize;
ubhat 0:6cc76d70e2a1 32 uint8_t *AppDataBuffer;
ubhat 0:6cc76d70e2a1 33 uint16_t DownLinkCounter;
ubhat 0:6cc76d70e2a1 34 bool LinkCheck;
ubhat 0:6cc76d70e2a1 35 uint8_t DemodMargin;
ubhat 0:6cc76d70e2a1 36 uint8_t NbGateways;
ubhat 0:6cc76d70e2a1 37 };
ubhat 0:6cc76d70e2a1 38
ubhat 0:6cc76d70e2a1 39 extern ComplianceTest_s ComplianceTest;
ubhat 0:6cc76d70e2a1 40
ubhat 0:6cc76d70e2a1 41 void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication );
ubhat 0:6cc76d70e2a1 42 void RunComplianceTest( void );
ubhat 0:6cc76d70e2a1 43
ubhat 0:6cc76d70e2a1 44 #endif // __COMPLIANCE_H__