ov7725.h 720 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * This file is part of the OpenMV project.
  3. * Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
  4. * This work is licensed under the MIT license, see the file LICENSE for details.
  5. *
  6. * OV7725 driver.
  7. *
  8. */
  9. #ifndef __OV7725_H__
  10. #define __OV7725_H__
  11. #include "sensor.h"
  12. /**
  13. * @brief Detect sensor pid
  14. *
  15. * @param slv_addr SCCB address
  16. * @param id Detection result
  17. * @return
  18. * 0: Can't detect this sensor
  19. * Nonzero: This sensor has been detected
  20. */
  21. int ov7725_detect(int slv_addr, sensor_id_t *id);
  22. /**
  23. * @brief initialize sensor function pointers
  24. *
  25. * @param sensor pointer of sensor
  26. * @return
  27. * Always 0
  28. */
  29. int ov7725_init(sensor_t *sensor);
  30. #endif // __OV7725_H__