ov5640.h 494 B

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