mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 19:49:42 +08:00
45 lines
618 B
C++
45 lines
618 B
C++
//
|
|
// 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
|