26 lines
517 B
C
26 lines
517 B
C
#ifndef DS_TMP112_H
|
|
#define DS_TMP112_H
|
|
|
|
#ifdef STM32G030xx
|
|
#include "stm32g0xx_hal.h"
|
|
#endif
|
|
|
|
#ifdef STM32F030xx
|
|
#include "stm32f0xx_hal.h"
|
|
#endif
|
|
|
|
#ifdef STM32F103xB
|
|
#include "stm32f1xx_hal.h"
|
|
#endif
|
|
|
|
#ifdef STM32L152xC
|
|
#include "stm32l1xx_hal.h"
|
|
#endif
|
|
|
|
/**
|
|
* Возвращает температуру в миллиградусах Цельсия (1/1000 °C)
|
|
* Пример: 25500 означает 25.5°C
|
|
*/
|
|
int32_t DS_TMP112_ReadTemperature(I2C_HandleTypeDef *hi2c);
|
|
|
|
#endif //DS_TMP112_H
|