#ifndef _DHT11__H_
#define _DHT11__H_

#include "main.h"

extern bool DHT11ReadIO ( void );

//对应IO口配置

typedef struct
{
    uint8_t  humi_int;		//湿度的整数部分
    uint8_t  humi_deci;	 	//湿度的小数部分
    uint8_t  temp_int;	 	//温度的整数部分
    uint8_t  temp_deci;	 	//温度的小数部分
    uint8_t  check_sum;	 	//校验和

} DHT11_Data_TypeDef;

unsigned char StartDHT11 ( void );
void DHT11_PortIN ( void );
void DHT11_PortOUT ( void );
uint8_t Read_DHT11 ( DHT11_Data_TypeDef *DHT11_Data );
//**********************************

//**********************************

extern unsigned char tdata[4];
//extern unsigned char sbuf;
//extern unsigned char check;

#endif
