Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LoRaWAN-lib SX1272Lib lib_gps lib_mma8451q lib_mpl3115a2 mbed
Fork of LoRaWAN-NAMote72-Application-Demo by
app/Common.h
- Committer:
- ubhat
- Date:
- 2016-05-17
- Revision:
- 0:69f2e28d12c1
- Child:
- 5:6ffeac53b7cb
File content as of revision 0:69f2e28d12c1:
/*
 / _____)             _              | |
( (____  _____ ____ _| |_ _____  ____| |__
 \____ \| ___ |    (_   _) ___ |/ ___)  _ \
 _____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
    (C)2015 Semtech
Description: Extern declaration of parameters defined in main.cpp
License: Revised BSD License, see LICENSE.TXT file include in the project
Maintainer: Uttam Bhat
*/
#ifndef __COMMON_H__
#define __COMMON_H__
#include "Comissioning.h"
#include "board.h"
/*!
 * User application data buffer size
 */
#define LORAWAN_APP_DATA_MAX_SIZE                           64
#if( OVER_THE_AIR_ACTIVATION != 0 )
/*!
 * Over the Air Activation 
 */
extern uint8_t DevEui[];
extern uint8_t AppEui[];
extern uint8_t AppKey[];
#else
/*!
 * Activation by Personalization 
 */
extern uint8_t NwkSKey[];
extern uint8_t AppSKey[];
extern uint32_t DevAddr;
#endif
extern uint8_t AppData[LORAWAN_APP_DATA_MAX_SIZE]; //  User application data size
extern uint8_t AppPort; // Application port
extern uint8_t AppDataSize; // Application size
extern uint8_t IsTxConfirmed; // Indicates if the node is sending confirmed or unconfirmed messages
extern bool NextTx; // Indicates if a new packet can be sent
extern bool IsNetworkJoinedStatusUpdate; // Indicates if the MAC layer network join status has changed.
extern bool IsTxUpdate; // Indicates if the message sent
extern bool IsRxUpdate; // Indicates if the message received in the RX window.
extern TimerEvent_t TxNextPacketTimer; // Timer to handle the application data transmission duty cycle
#endif // __COMMON_H__
            
    