Files
DCU_APP/GD32E508_DCU_APP/device/temp_sensor.h
T

21 lines
417 B
C++
Raw Normal View History

#ifndef DEVICE_TEMP_SENSOR_H
#define DEVICE_TEMP_SENSOR_H
#include "device/adc.h"
/**
* @brief 温度采样模块。
* @note 当前作为 ADC 模块的轻量门面,复用 Adc::Sample 作为结果类型。
*/
class TempSensor {
public:
using Data = Adc::Sample;
static void init();
static void sample(Data *data);
};
using temp_sensor_data_t = TempSensor::Data;
#endif /* DEVICE_TEMP_SENSOR_H */