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 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 #include "LoRaMac.h" 30 #include "LmHandlerTypes.h" 31 #include "LmhPackage.h" 32 33 /*! 34 * Clock sync package identifier. 35 * 36 * \remark This value must be unique amongst the packages 37 */ 38 #define PACKAGE_ID_CLOCK_SYNC 1 39 40 /*! 41 * Clock sync package parameters 42 * 43 * This package doesn't require parameters 44 */ 45 //typedef struct LmphClockSyncParams_s 46 //{ 47 //}LmphClockSyncParams_t; 48 49 LmhPackage_t *LmphClockSyncPackageFactory( void ); 50 51 LmHandlerErrorStatus_t LmhpClockSyncAppTimeReq( void ); 52 53 #ifdef __cplusplus 54 } 55 #endif 56 57 #endif // __LMHP_CLOCK_SYNC_H__ 58