1 /*! 2 * \file LmhpClockSync.h 3 * 4 * \brief Implements the LoRa-Alliance clock synchronization package 5 * Specification: https://lora-alliance.org/sites/default/files/2018-09/application_layer_clock_synchronization_v1.0.0.pdf 6 * 7 * \copyright Revised BSD License, see section \ref LICENSE. 8 * 9 * \code 10 * ______ _ 11 * / _____) _ | | 12 * ( (____ _____ ____ _| |_ _____ ____| |__ 13 * \____ \| ___ | (_ _) ___ |/ ___) _ \ 14 * _____) ) ____| | | || |_| ____( (___| | | | 15 * (______/|_____)_|_|_| \__)_____)\____)_| |_| 16 * (C)2013-2018 Semtech 17 * 18 * \endcode 19 * 20 * \author Miguel Luis ( Semtech ) 21 */ 22 #ifndef __LMHP_CLOCK_SYNC_H__ 23 #define __LMHP_CLOCK_SYNC_H__ 24 25 #include "LoRaMac.h" 26 #include "LmHandlerTypes.h" 27 #include "LmhPackage.h" 28 29 /*! 30 * Clock sync package identifier. 31 * 32 * \remark This value must be unique amongst the packages 33 */ 34 #define PACKAGE_ID_CLOCK_SYNC 1 35 36 /*! 37 * Clock sync package parameters 38 * 39 * This package doesn't require parameters 40 */ 41 //typedef struct LmphClockSyncParams_s 42 //{ 43 //}LmphClockSyncParams_t; 44 45 LmhPackage_t *LmphClockSyncPackageFactory( void ); 46 47 LmHandlerErrorStatus_t LmhpClockSyncAppTimeReq( void ); 48 49 #endif // __LMHP_CLOCK_SYNC_H__ 50