srv_monitor.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 2020 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _SRV_MONITOR_H_
  13. #define _SRV_MONITOR_H_
  14. #include "osi_compiler.h"
  15. #include "hal_config.h"
  16. OSI_EXTERN_C_BEGIN
  17. /**
  18. * \brief start thermal monitor, power off chip if over/lower temperature
  19. */
  20. void srvThmMonitorInit(void);
  21. /**
  22. * \brief initialize and start a daemon calib rc26m periodical
  23. */
  24. void srvRc26mCalibInit(void);
  25. /**
  26. * \brief start or restart rc26m calibration daemon
  27. *
  28. * \param ms rc26m calibration interval
  29. */
  30. void srvRc26mCalibStart(unsigned ms);
  31. /**
  32. * \brief stop rc26m calibration daemon
  33. */
  34. void srvRc26mCalibStop(void);
  35. OSI_EXTERN_C_END
  36. #endif