sensor_driver.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef __SENSOR_DRIVER_H__
  2. #define __SENSOR_DRIVER_H__
  3. #include "bmc_main.h"
  4. int lm73_1_init(hal_t *phal);
  5. int lm73_1_write(hal_t *phal);
  6. int lm73_1_read(hal_t *phal);
  7. int lm73_2_init(hal_t *phal);
  8. int lm73_2_write(hal_t *phal);
  9. int lm73_2_read(hal_t *phal);
  10. int INA220_3V3_Volts_init(hal_t *phal);
  11. int INA220_3V3_Volts_write(hal_t *phal);
  12. int INA220_3V3_Volts_read(hal_t *phal);
  13. int INA220_5V0_Volts_init(hal_t *phal);
  14. int INA220_5V0_Volts_write(hal_t *phal);
  15. int INA220_5V0_Volts_read(hal_t *phal);
  16. int INA220_12V0_Volts_init(hal_t *phal);
  17. int INA220_12V0_Volts_write(hal_t *phal);
  18. int INA220_12V0_Volts_read(hal_t *phal);
  19. int INA220_3V3_Amps_init(hal_t *phal);
  20. int INA220_3V3_Amps_write(hal_t *phal);
  21. int INA220_3V3_Amps_read(hal_t *phal);
  22. int INA220_5V0_Amps_init(hal_t *phal);
  23. int INA220_5V0_Amps_write(hal_t *phal);
  24. int INA220_5V0_Amps_read(hal_t *phal);
  25. int INA220_12V0_Amps_init(hal_t *phal);
  26. int INA220_12V0_Amps_write(hal_t *phal);
  27. int INA220_12V0_Amps_read(hal_t *phal);
  28. //int INA220_3V3_Power_init(hal_t *phal);
  29. //int INA220_3V3_Power_write(hal_t *phal);
  30. //int INA220_3V3_Power_read(hal_t *phal);
  31. //
  32. //int INA220_5V0_Power_init(hal_t *phal);
  33. //int INA220_5V0_Power_write(hal_t *phal);
  34. //int INA220_5V0_Power_read(hal_t *phal);
  35. //
  36. //int INA220_12V0_Power_init(hal_t *phal);
  37. //int INA220_12V0_Power_write(hal_t *phal);
  38. //int INA220_12V0_Power_read(hal_t *phal);
  39. extern sensor_tbl_t sensor_tbl[];
  40. //extern sensor_tbl_t g_sensor_tbl[];
  41. #endif /* __SENSOR_DRIVER_H__ */