charge_demo.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. @file
  3. charger_demo.h
  4. @brief
  5. quectel charger_demo.
  6. */
  7. /*================================================================
  8. Copyright (c) 2020 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
  9. Quectel Wireless Solution Proprietary and Confidential.
  10. =================================================================*/
  11. /*=================================================================
  12. EDIT HISTORY FOR MODULE
  13. This section contains comments describing changes made to the module.
  14. Notice that changes are listed in reverse chronological order.
  15. WHEN WHO WHAT, WHERE, WHY
  16. ------------ ------- -------------------------------------------------------------------------------
  17. 15/01/2021 Neo Init version
  18. =================================================================*/
  19. #ifndef _CHARGE_H
  20. #define _CHARGE_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /*===========================================================================
  25. * Macro Definition
  26. ===========================================================================*/
  27. /*===========================================================================
  28. * Struct
  29. ===========================================================================*/
  30. /*
  31. ** NTC电压与温度的映射关系,需要参考电池规格书修改!!!!!!
  32. */
  33. const static int16_t ql_vbat_temp_table[][2] =
  34. {
  35. {1712, -40},
  36. {1686, -35},
  37. {1654, -30},
  38. {1615, -25},
  39. {1570, -20},
  40. {1517, -15},
  41. {1457, -10},
  42. {1390, -5},
  43. {1316, 0},
  44. {1238, 5},
  45. {1155, 10},
  46. {1070, 15},
  47. {985, 20},
  48. {900, 25},
  49. {817, 30},
  50. {738, 35},
  51. {663, 40},
  52. {593, 45},
  53. {529, 50},
  54. {470, 55},
  55. {417, 60},
  56. {370, 65},
  57. {328, 70},
  58. {291, 75},
  59. {257, 80},
  60. {228, 85},
  61. {203, 90},
  62. {180, 95},
  63. {160, 100},
  64. {142, 105},
  65. {127, 110},
  66. {113, 115},
  67. {101, 120},
  68. {91, 125},
  69. };
  70. /*===========================================================================
  71. * Functions declaration
  72. ===========================================================================*/
  73. void ql_charge_app_init(void);
  74. #ifdef __cplusplus
  75. } /*"C" */
  76. #endif
  77. #endif /* _CHARGE_H */