srv_thm_monitor.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (C) 2019 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_THM_MONITOR_H_
  13. #define _SRV_THM_MONITOR_H_
  14. #include <stdint.h>
  15. #include <stdbool.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #ifdef CONFIG_SOC_8811
  20. /**
  21. * @brief return the temperature value for the chip work state.
  22. * when sim card in sert,Rf driver get temperature in RXOFF state
  23. * if there is no sim,RF driver read the value every 640ms
  24. * @param void
  25. * @return
  26. * temperature vlaue -40~85 degrees Celsius
  27. */
  28. int32_t srvThmGetChipTemperature(void);
  29. #endif
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif