init
This commit is contained in:
23
device/SerialPort/PowerAttenuator.h
Normal file
23
device/SerialPort/PowerAttenuator.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef POWERATTENUATOR_H
|
||||
#define POWERATTENUATOR_H
|
||||
#include "SerialPort.h"
|
||||
|
||||
|
||||
#define POWERMATT PowerAttenuator::instance()
|
||||
class PowerAttenuator:public Comm
|
||||
{
|
||||
private:
|
||||
char revData[4096];
|
||||
int revDataLen;
|
||||
static PowerAttenuator* uniqueInstance;
|
||||
public:
|
||||
static PowerAttenuator* instance();
|
||||
PowerAttenuator();
|
||||
~PowerAttenuator();
|
||||
int GetSts(int * value);
|
||||
int GetPos(int * value);
|
||||
int setPos(int value);
|
||||
int setRPos(int value);
|
||||
// int SendCmd(char *data, unsigned short data_len ,unsigned char * revData, int * revData_len);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user