mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-20 03:49:43 +08:00
任立新 温控系统
This commit is contained in:
44
othersoft/TemperatureControler/src/Temperature/TG_Manager.h
Normal file
44
othersoft/TemperatureControler/src/Temperature/TG_Manager.h
Normal file
@ -0,0 +1,44 @@
|
||||
//
|
||||
// Created by xin on 25-3-31.
|
||||
//
|
||||
|
||||
#ifndef TG_MANAGER_H
|
||||
#define TG_MANAGER_H
|
||||
|
||||
enum WORKINGSTATUS{
|
||||
HEATING=1,
|
||||
COOLING=2,
|
||||
NotWroking=0
|
||||
};
|
||||
|
||||
class TG_Manager {
|
||||
public:
|
||||
|
||||
void SetPin(int pin1_H=7, int pin1_L=10, int pin2_H=2, int pin2_L=4);
|
||||
void InitManger();
|
||||
|
||||
bool Heating();
|
||||
bool Cooling();
|
||||
bool Stop();
|
||||
int GetManagerStatus();
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
bool SetTuiGan(int IS_High);
|
||||
bool SetSwitch1Status(bool status);
|
||||
bool SetSwitch2Status(bool status);
|
||||
int pin1_H=7;
|
||||
int pin1_L=10;
|
||||
int pin2_H=2;
|
||||
int pin2_L=4;
|
||||
bool ping1_status=false;
|
||||
int WorkingStatus=NotWroking;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif //TG_MANAGER_H
|
Reference in New Issue
Block a user