Embedded System Design 2 - Project
DS18B20.h
Go to the documentation of this file.
1 /***************************************************************************//**
2  * @file DS18B20.h
3  * @brief All code for the DS18B20 temperature sensor.
4  * @version 3.1
5  * @author
6  * Alec Vanderhaegen & Sarah Goossens@n
7  * Modified by Brecht Van Eeckhoudt
8  *
9  * ******************************************************************************
10  *
11  * @section License
12  *
13  * **Copyright (C) 2019 - Brecht Van Eeckhoudt**
14  *
15  * This program is free software: you can redistribute it and/or modify
16  * it under the terms of the **GNU General Public License** as published by
17  * the Free Software Foundation, either **version 3** of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * *A copy of the GNU General Public License can be found in the `LICENSE`
26  * file along with this source code.*
27  *
28  * @n
29  *
30  * Some methods use code obtained from examples from [Silicon Labs' GitHub](https://github.com/SiliconLabs/peripheral_examples).
31  * These sections are licensed under the Silabs License Agreement. See the file
32  * "Silabs_License_Agreement.txt" for details. Before using this software for
33  * any purpose, you must agree to the terms of that agreement.
34  *
35  ******************************************************************************/
36 
37 
38 /* Include guards prevent multiple inclusions of the same header */
39 #ifndef _DS18B20_H_
40 #define _DS18B20_H_
41 
42 
43 /* Include necessary for this header file */
44 #include <stdint.h> /* (u)intXX_t */
45 
46 
47 /* Public prototype */
48 int32_t readTempDS18B20 (void);
49 
50 
51 #endif /* _DS18B20_H_ */
int32_t readTempDS18B20(void)
Get a temperature value from the DS18B20.
Definition: DS18B20.c:113