sc101iot.h 540 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. *
  3. * SC101IOT DVP driver.
  4. *
  5. */
  6. #ifndef __SC101IOT_H__
  7. #define __SC101IOT_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 sc101iot_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 sc101iot_init(sensor_t *sensor);
  27. #endif // __SC101IOT_H__