You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
406 B
31 lines
406 B
//
|
|
// Created by iflyt on 2025/7/13.
|
|
//
|
|
|
|
#ifndef TEMP_CONTROL_H
|
|
#define TEMP_CONTROL_H
|
|
|
|
#include <stdint.h>
|
|
|
|
class TempControl {
|
|
public:
|
|
TempControl() = default;
|
|
~TempControl() = default;
|
|
|
|
void init();
|
|
|
|
int32_t setTemp(double temp);
|
|
|
|
int32_t close();
|
|
|
|
double getCurrentTemp() const;
|
|
|
|
private:
|
|
double target_temp_{0};
|
|
double current_temp_{0};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //TEMP_CONTROL_H
|