Loading...
Searching...
No Matches
coretemp.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Bas Stottelaar <basstottelaar@gmail.com>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
33#ifndef DRIVERS_CORETEMP_H
34#define DRIVERS_CORETEMP_H
35
36#include <stdint.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
51int coretemp_init(void);
52
61int16_t coretemp_read(void);
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* DRIVERS_CORETEMP_H */
int16_t coretemp_read(void)
Read the current temperature from the sensor.
int coretemp_init(void)
Initialize the sensor.