📄 cs2010.h
字号:
// CS2010.h: interface for the CCS2010 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CS2010_H__C08F8748_EF02_47A3_9116_D719A1C9F5DC__INCLUDED_)
#define AFX_CS2010_H__C08F8748_EF02_47A3_9116_D719A1C9F5DC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define NOPARITY 0
#define ODDPARITY 1
#define EVENPARITY 2
#define MARKPARITY 3
#define SPACEPARITY 4
#define ONESTOPBIT 0
#define ONE5STOPBITS 1
#define TWOSTOPBITS 2
#define OPEN 1
#define CLOSE 0
#define TIME_OUT 2000
class CCS2010
{
public:
CCS2010();
virtual ~CCS2010();
int SetParam(int ComPort,int BaudRate,int Data,int Parity,int Stop,int Timeout);
int OpenDevice();
int CloseDevice();
int ReadCardID(unsigned char *CardId);//读取卡号
int GetError(char *Error);
int FlashStatus(int Status); //根据状态,进行灯光提示
int BeepStatus(int Status); //根据状态,进行声音提示
int ShakeStatus(int Status); //根据状态,进行震动提示
private:
protected:
int _ComPort;
int _BaudRate;
int _Data;
int _Parity;
int _Stop;
int _Status;
int _Timeout;
char _Error[64];
char _DataBuf[64];
};
#endif // !defined(AFX_CS2010_H__C08F8748_EF02_47A3_9116_D719A1C9F5DC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -