##// END OF EJS Templates
Working Snapshot
Working Snapshot

File last commit:

r0:2d12462f4460 default
r1:ca5cf5cd2804 Working Snapshot default
Show More
spwplugin.cpp
53 lines | 1.1 KiB | text/x-c | CppLexer
/*------------------------------------------------------------------------------
-------------------------------------------------------------------------------*/
/*-- Author : Alexis Jeandet
-- Mail : alexis.jeandet@member.fsf.org
----------------------------------------------------------------------------*/
#include "spwplugin.h"
#include "stardundeespw_usb.h"
spwplugin::spwplugin(QWidget *parent):socexplorerplugin(parent,true)
{
Q_UNUSED(parent)
this->bridge = new stardundeeSPW_USB(this);
if(this->bridge->connectBridge())
{
this->Connected = true;
emit this->activateSig(true);
}
}
spwplugin::~spwplugin()
{
}
unsigned int spwplugin::Read(unsigned int *Value,unsigned int count,unsigned int address)
{
if(Connected)
{
return bridge->Read(Value,count,address);
}
return 0;
}
unsigned int spwplugin::Write(unsigned int *Value,unsigned int count, unsigned int address)
{
if(Connected)
{
return bridge->Write(Value,count,address);
}
return 0;
}