##// END OF EJS Templates
Sync
Sync

File last commit:

r7:82d9ebf595cf default
r7:82d9ebf595cf default
Show More
spwplugin.cpp
56 lines | 1.1 KiB | text/x-c | CppLexer
/*------------------------------------------------------------------------------
-------------------------------------------------------------------------------*/
/*-- Author : Alexis Jeandet
-- Mail : alexis.jeandet@member.fsf.org
----------------------------------------------------------------------------*/
#include "spwplugin.h"
#include "stardundeespw_usb.h"
#include <socexplorerproxy.h>
spwplugin::spwplugin(QWidget *parent):socexplorerplugin(parent,true)
{
Q_UNUSED(parent)
this->bridge = new stardundeeSPW_USB(this);
this->scanDone = false;
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;
}