This commit is contained in:
Chenwenxuan
2024-03-06 14:54:30 +08:00
commit edac2715f0
1525 changed files with 809982 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#ifndef POWERMETER_H
#define POWERMETER_H
#include "SerialPort.h"
#define POWERMETERMACH PowerMeter::MachInstance()
#define POWERMETERLIGHT PowerMeter::LightInstance()
class PowerMeter:public Comm
{
private:
char revData[4096];
int revDataLen;
static PowerMeter* uniqueInstanceMach;
static PowerMeter* uniqueInstanceLight;
public:
static PowerMeter* MachInstance();
static PowerMeter* LightInstance();
PowerMeter();
~PowerMeter();
int GetValue(float * Value);
float convert(char *num);
// int SendCmd(char *data, unsigned short data_len ,unsigned char * revData, int * revData_len);
};
#endif