initial commit
This commit is contained in:
34
hal/hal_lightsensor/hal_interface_lightsensor.h
Executable file
34
hal/hal_lightsensor/hal_interface_lightsensor.h
Executable file
@@ -0,0 +1,34 @@
|
||||
#ifndef __HAL_LIGHTSENSOR_H__
|
||||
#define __HAL_LIGHTSENSOR_H__
|
||||
#include "hal.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define NIGHT_ADC ((uint16_t)(30))
|
||||
#define DAY_ADC ((uint16_t)(60))
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// 数据类型定义
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
uint32_t hal_lightsensor_init();
|
||||
|
||||
uint32_t hal_lightsensor_deinit();
|
||||
|
||||
uint32_t hal_lightsensor_start();
|
||||
|
||||
uint32_t hal_lightsensor_stop();
|
||||
|
||||
uint32_t hal_lightsensor_get_adc(uint32_t *p_adc);// <NIGHT_ADC to night, >=DAY_ADC to day
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __HAL_LIGHTSENSOR_H__ */
|
||||
Reference in New Issue
Block a user