ov2640.h 719 B

1234567891011121314151617181920212223242526272829303132
  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. * OV2640 driver.
  7. *
  8. */
  9. #ifndef __OV2640_H__
  10. #define __OV2640_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 ov2640_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 ov2640_init(sensor_t *sensor);
  30. #endif // __OV2640_H__