kejingfan 4b8460f4ce 重构各页面代码,从h文件改为cpp文件;
添加硬件接口并添加,readerAPI使用硬件接口获取invenory信息和connect;
完成开卡初始页面,获取卡号和学号。
2024-07-29 11:24:26 +08:00

27 lines
480 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef READERAPI_H
#define READERAPI_H
#include <HF15693.h>
#include <cstdio>
#include <cstring>
#include <QString>
#include <QStringList>
#include <VCDOurs.h>
typedef unsigned char uchar_t;
class Reader : private CVCDOurs
{
private:
int comNumber = -1; // com口号若未连接为-1
public:
bool is_connected();
bool connect();
void setComNumber(int comNumber);
int getComNumber();
QStringList inventory(int maxViccNum);
};
#endif // READERAPI_H