Loading...
Searching...
No Matches
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
38
39#include <stdint.h>
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
55int coretemp_init(void);
56
68int16_t coretemp_read(void);
69
70#ifdef __cplusplus
71}
72#endif
73
int16_t coretemp_read(void)
Read the current temperature from the sensor.
int coretemp_init(void)
Initialize the sensor.