-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAD.H
118 lines (101 loc) · 2.69 KB
/
AD.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/***************************************************************************************
* File Name :
* CopyRight :
* ModuleName :
*
* CPU :
* RTOS :
*
* Create Data :
* Author/Corportation :
*
* Abstract Description : this will be used for
*
*--------------------------------Revision History--------------------------------------
* No version Data Revised By Item Description
*
*
***************************************************************************************/
/**************************************************************
* Multi-Include-Prevent Section
**************************************************************/
#ifndef __AD_H
#define __AD_H
/**************************************************************
* Debug switch Section
**************************************************************/
/**************************************************************
* Include File Section
**************************************************************/
#include<reg52.h>
/**************************************************************
* Macro Define Section
**************************************************************/
#define uint unsigned int
#define uchar unsigned char
/**************************************************************
* Struct Define Section
**************************************************************/
/**************************************************************
* Prototype Declare Section
**************************************************************/
/**
* @name: void delay(uint i)
* @description: 延时函数
* @param: i 延时时间
* @return :none
* @notice :none
*/
void delayMs(uint i);
/**
* @name:uint getTemp()
* @description: 读取温度
* @param : none
* @return : 读取到的温度
* @notice
*/
uint getTemp();
/**
* @name:void tempchang()
* @description: 开始获取温度并转换
* @param
* @return
* @notice
*/
void tempchange();
/**
* @name:void writeData(uchar dat)
* @description : 写数据
* @param :dat数据
* @return
* @notice
*/
void writeData(uchar dat);
/**
* @name: void init()
* @description: 初始化lcd
* @param :none
* @return :none
* @notice:none
*/
void init();
/**
* @name:void writeCom(uchar com)
* @description: 向lcd写命令
* @param :com 命令
* @return : none
* @notice : none
*/
void writeCom(uchar com);
/**
* @name: void displayLcd(uchar x, uint num)
* @description:指定位置显示数字
* @param :温度
* @return :none
* @notice: none
*/
void displayLcd(uchar x, uint num);
/**************************************************************
* End-Multi-Include-Prevent Section
**************************************************************/
#endif