From 12654baa7335fe1a666eb9a66ada9405e92d88f3 Mon Sep 17 00:00:00 2001 From: Mehrabi Date: Tue, 14 Dec 2021 01:13:09 -0500 Subject: [PATCH] add wrapper.h and hydari changes --- Plx/include/Wrapper/PlxWrapper.h | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 Plx/include/Wrapper/PlxWrapper.h diff --git a/Plx/include/Wrapper/PlxWrapper.h b/Plx/include/Wrapper/PlxWrapper.h new file mode 100755 index 0000000..9286ead --- /dev/null +++ b/Plx/include/Wrapper/PlxWrapper.h @@ -0,0 +1,34 @@ +#ifndef PLXWRAPPER_H +#define PLXWRAPPER_H + +#include +#include "../../plxlib/plxinc/PlxPci_9054_Func.h" + +class PlxWrapper +{ +public: + PlxWrapper(); + + bool deviceInit(quint32 devicekey); + bool deviceOpen(void); + bool deviceClose(void); + bool deviceReset(void); + bool deviceLoadE2pToFPGA(void); + + bool deviceReadEeprom(quint16 offset,quint32 length, QVector &data); + bool deviceWriteEeprom(quint16 offset, quint32 data); + + bool deviceReadRegister(quint32 address,QVector &data,quint32 length); + bool deviceReadRegister(quint32 address,quint32 &data); + bool deviceWriteRegister(quint32 address,QVector &data); + bool deviceWriteRegister(quint32 address,quint32 data); + + bool deviceReadMemory(quint32 localAddress ,QVector &data,quint32 length); + bool deviceOpenPCIChannel(void); + bool deviceClosePCIChannel(void); + bool deviceEnableInterrupt(void); + bool deviceDisableInterrupt(void); + bool deviceWaitForInterrupt(quint32 timeout); + bool deviceGetChipType(quint8 revision,quint16 chipType); +}; +#endif // PLXWRAPPER_H