gc032a.h 524 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. *
  3. * GC032A driver.
  4. *
  5. */
  6. #ifndef __GC032A_H__
  7. #define __GC032A_H__
  8. #include "sensor.h"
  9. /**
  10. * @brief Detect sensor pid
  11. *
  12. * @param slv_addr SCCB address
  13. * @param id Detection result
  14. * @return
  15. * 0: Can't detect this sensor
  16. * Nonzero: This sensor has been detected
  17. */
  18. int gc032a_detect(int slv_addr, sensor_id_t *id);
  19. /**
  20. * @brief initialize sensor function pointers
  21. *
  22. * @param sensor pointer of sensor
  23. * @return
  24. * Always 0
  25. */
  26. int gc032a_init(sensor_t *sensor);
  27. #endif // __GC032A_H__