coretemp.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 Bas Stottelaar <basstottelaar@gmail.com>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
32 #include <stdint.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
47 int coretemp_init(void);
48 
57 int16_t coretemp_read(void);
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
int16_t coretemp_read(void)
Read the current temperature from the sensor.
int coretemp_init(void)
Initialize the sensor.