28 lines
494 B
C
28 lines
494 B
C
|
|
#ifndef __BF20A6_H__
|
|
#define __BF20A6_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 bf20a6_detect(int slv_addr, sensor_id_t *id);
|
|
|
|
/**
|
|
* @brief initialize sensor function pointers
|
|
*
|
|
* @param sensor pointer of sensor
|
|
* @return
|
|
* Always 0
|
|
*/
|
|
int bf20a6_init(sensor_t *sensor);
|
|
|
|
#endif // __BF20A6_H__
|