You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.1 KiB
63 lines
2.1 KiB
#ifndef PLXWRAPPER_H
|
|
#define PLXWRAPPER_H
|
|
#include <QtGlobal>
|
|
#include "PlxPci_9054_Func.h"
|
|
<<<<<<< HEAD
|
|
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<quint32>& data);
|
|
bool deviceWriteEeprom(quint16 offset, quint32 data);
|
|
|
|
bool deviceReadRegister(quint32 address, QVector<quint32>& data, quint32 length);
|
|
bool deviceReadRegister(quint32 address, quint32& data);
|
|
bool deviceWriteRegister(quint32 address, QVector<quint32>& data);
|
|
bool deviceWriteRegister(quint32 address, quint32 data);
|
|
|
|
bool deviceReadMemory(quint32 localAddress, QVector<quint32>& 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);
|
|
=======
|
|
|
|
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<quint32>& data);
|
|
bool deviceWriteEeprom(quint16 offset, quint32 data);
|
|
|
|
bool deviceReadRegister(quint32 address, QVector<quint32>& data, quint32 length);
|
|
bool deviceReadRegister(quint32 address, quint32& data);
|
|
bool deviceWriteRegister(quint32 address, QVector<quint32>& data);
|
|
bool deviceWriteRegister(quint32 address, quint32 data);
|
|
|
|
bool deviceReadMemory(quint32 localAddress, QVector<quint32>& 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);
|
|
>>>>>>> 64f6e7f618eb5a6f1f63a4c5f377b46f1e7bc126
|
|
};
|
|
|
|
#endif //PLXWRAPPER_H
|
|
|