- Add sensor GC2145 GC0308 GC032A - Make xclk driver more standard - Update README.md - Add an option to adjust the DMA buffer size Co-authored-by: zhouli <zhouli@espressif.com>
27 lines
494 B
C
27 lines
494 B
C
|
|
#ifndef __GC2145_H__
|
|
#define __GC2145_H__
|
|
|
|
#include "sensor.h"
|
|
|
|
/**
|
|
* @brief Detect sensor pid
|
|
*
|
|
* @param slv_addr SCCB address
|
|
* @param id Detection result
|
|
* @return
|
|
* 0: Can't detect this sensor
|
|
* Nonzero: This sensor has been detected
|
|
*/
|
|
int gc2145_detect(int slv_addr, sensor_id_t *id);
|
|
|
|
/**
|
|
* @brief initialize sensor function pointers
|
|
*
|
|
* @param sensor pointer of sensor
|
|
* @return
|
|
* Always 0
|
|
*/
|
|
int gc2145_init(sensor_t *sensor);
|
|
|
|
#endif // __GC2145_H__
|