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_Multitech by
Common.h
00001 /* 00002 / _____) _ | | 00003 ( (____ _____ ____ _| |_ _____ ____| |__ 00004 \____ \| ___ | (_ _) ___ |/ ___) _ \ 00005 _____) ) ____| | | || |_| ____( (___| | | | 00006 (______/|_____)_|_|_| \__)_____)\____)_| |_| 00007 (C)2015 Semtech 00008 00009 Description: Extern declaration of parameters defined in main.cpp 00010 00011 License: Revised BSD License, see LICENSE.TXT file include in the project 00012 00013 Maintainer: Uttam Bhat 00014 */ 00015 #ifndef __COMMON_H__ 00016 #define __COMMON_H__ 00017 00018 #include "Comissioning.h" 00019 #include "board.h" 00020 00021 /*! 00022 * User application data buffer size 00023 */ 00024 #define LORAWAN_APP_DATA_MAX_SIZE 64 00025 00026 /*! 00027 * Current network ID 00028 */ 00029 #define LORAWAN_NETWORK_ID ( uint32_t )0 00030 00031 00032 #if( OVER_THE_AIR_ACTIVATION != 0 ) 00033 /*! 00034 * Over the Air Activation 00035 */ 00036 00037 extern uint8_t DevEui[]; 00038 extern uint8_t AppEui[]; 00039 extern uint8_t AppKey[]; 00040 00041 #else 00042 /*! 00043 * Activation by Personalization 00044 */ 00045 00046 extern uint8_t NwkSKey[]; 00047 extern uint8_t AppSKey[]; 00048 extern uint32_t DevAddr; 00049 00050 #endif 00051 00052 extern uint8_t AppData[LORAWAN_APP_DATA_MAX_SIZE]; // User application data size 00053 00054 extern uint8_t AppPort; // Application port 00055 00056 extern uint8_t AppDataSize; // Application size 00057 00058 extern uint8_t IsTxConfirmed; // Indicates if the node is sending confirmed or unconfirmed messages 00059 00060 extern bool IsTxIntUpdate; // Indicates if a new transmit interrupt can be set 00061 00062 extern bool NextTx; // Indicates if a new packet can be sent 00063 00064 extern bool IsNetworkJoinedStatusUpdate; // Indicates if the MAC layer network join status has changed. 00065 00066 extern bool IsTxUpdate; // Indicates if the message sent 00067 00068 extern bool IsRxUpdate; // Indicates if the message received in the RX window. 00069 00070 extern TimerEvent_t TxNextPacketTimer; // Timer to handle the application data transmission duty cycle 00071 00072 #endif // __COMMON_H__
Generated on Thu Jul 28 2022 06:45:12 by
1.7.2
