-
Notifications
You must be signed in to change notification settings - Fork 0
/
lm35_temp_sensor.h
29 lines (20 loc) · 948 Bytes
/
lm35_temp_sensor.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
/********************************************************************************************
* Module: temperature sensor
* Description: header file for the temperature sensor driver
* file name: lm35_temp_sensor.h
* Author: Mustafa Mahmoud
*****************************************************************************************/
#ifndef LM35_TEMP_SENSOR_H_
#define LM35_TEMP_SENSOR_H_
#include"common_header.h"
#define MAX_TEMP_VALUE 150
#define MAX_VOLTAGE_SENSOR_VALUE 1.5
#define CHANNEL_OF_SENSOR 2
/************************************************************************
* function prototypes
*************************************************************************/
/*description:
* function prototype to get the temperature of the sensor from the ADC value
*/
uint8 LM35_getTemprature(void);
#endif /* LM35_TEMP_SENSOR_H_ */