/****************************************************************************************************
  * @brief      : 	JZ2440v2开发板传感器模块测试代码头文件
  * @version    : 	V0.0
  * @note       : 	无
  * @history    : 	无
*****************************************************************************************************/

#ifndef _SENSOR_H
#define _SENSOR_H


void InitADC(int channel);
int ReadADC(int channel);

/**********************************************************************************
  * @brief       : 	光敏电阻测试功能函数
  * @param[in]   : 	无
  * @param[out]  : 	无
  * @return      : 	无
  * @others      : 	无
***********************************************************************************/
void TestPhotoresistor(void);

/**********************************************************************************
  * @brief       : 	测试DS18B20温度传感器
  * @param[in]   : 	无
  * @param[out]  : 	无
  * @return      : 	无
  * @others      : 	无
***********************************************************************************/
void TestDs18b20(void);

/**********************************************************************************
  * @brief       : 	Dht11测试函数
  * @param[in]   : 	无
  * @param[out]  : 	无
  * @return      : 	无
  * @others      : 	无
***********************************************************************************/
void TestDht11(void);

/**************************************************************************************************
  * @brief		 :	nec协议的红外接收测试
  * @param[in]	 :	无
  * @param[out]  :	无
  * @return 	 :	无
  * @others 	 :	无
***************************************************************************************************/
void TestIrdaNec(void);

#endif

