init
This commit is contained in:
22
device/SerialPort/Barometer.h
Normal file
22
device/SerialPort/Barometer.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef BAROMETER_H
|
||||
#define BAROMETER_H
|
||||
#include "SerialPort.h"
|
||||
|
||||
|
||||
#define BAROMETER Barometer::instance()
|
||||
class Barometer:public Comm
|
||||
{
|
||||
private:
|
||||
char revData[4096];
|
||||
int revDataLen;
|
||||
|
||||
static Barometer* uniqueInstance;
|
||||
public:
|
||||
static Barometer* instance();
|
||||
Barometer();
|
||||
~Barometer();
|
||||
unsigned short CRC16(unsigned char *puchMsg, unsigned short usDataLen);
|
||||
int GetHeightValue(int deviceID,unsigned short addr,short *value);
|
||||
// int SendCmd(char *data, unsigned short data_len ,unsigned char * revData, int * revData_len);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user