Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.4 KiB

  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. #include "LoRaMac.h"
  25. #include "LmHandlerTypes.h"
  26. #include "LmhPackage.h"
  27. /*!
  28. * Clock sync package identifier.
  29. *
  30. * \remark This value must be unique amongst the packages
  31. */
  32. #define PACKAGE_ID_CLOCK_SYNC 1
  33. /*!
  34. * Clock sync package parameters
  35. *
  36. * This package doesn't require parameters
  37. */
  38. //typedef struct LmphClockSyncParams_s
  39. //{
  40. //}LmphClockSyncParams_t;
  41. LmhPackage_t *LmphClockSyncPackageFactory( void );
  42. LmHandlerErrorStatus_t LmhpClockSyncAppTimeReq( void );
  43. #endif // __LMHP_CLOCK_SYNC_H__