##// END OF EJS Templates
New register explorer WIP...
New register explorer WIP !!!!!!!!!!!!!!!!!!!!!!!!!!!!! REMOVED OLD genericPySysdriver interface Now the plugins are directly exposed to python. ABI not compatible with previous plugins. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

File last commit:

r79:3440ba47d0f1 default
r79:3440ba47d0f1 default
Show More
socmodel.h
117 lines | 3.2 KiB | text/x-c | CLexer
Jeandet Alexis
First init of SocExplorer Repository.
r0 /*------------------------------------------------------------------------------
-- This file is a part of the SocExplorer Software
Jeandet Alexis
Updated lab name!
r13 -- Copyright (C) 2013, Plasma Physics Laboratory - CNRS
Jeandet Alexis
First init of SocExplorer Repository.
r0 --
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-------------------------------------------------------------------------------*/
/*-- Author : Alexis Jeandet
-- Mail : alexis.jeandet@lpp.polytechnique.fr
----------------------------------------------------------------------------*/
#ifndef REGISTERSMODEL_H
#define REGISTERSMODEL_H
#include <QString>
#include <QList>
#include <QObject>
#include <QDomDocument>
#include <QDomElement>
#include "registerdata.h"
#include <socclk.h>
#include <socexplorerplugin.h>
class socExplorerEnumDevice;
class registerBitFieldModel
{
public:
registerBitFieldModel(const QString& name,const QString& description,
int size, int offset, bool rw)
{
this->name = name;
this->description = description;
this->size = size;
this->offset = offset;
this->rw = rw;
}
QString name;
QString description;
int size;
int offset;
bool rw;
};
class registerModel
{
public:
registerModel(const QString& name,qint32 offset)
{
this->name = name;
this->offset = offset;
}
QString name;
qint32 offset;
QList<registerBitFieldModel> bitfields;
};
class peripheralModel
{
public:
peripheralModel(const QString& name)
{
this->name = name;
}
QString name;
QList<registerModel> registers;
};
class SOCEXPLORER_EXPORT SOCModel :public QObject
{
Q_OBJECT
public:
SOCModel(socexplorerplugin* rootDev,QObject* parent=0);
bool isRootDev(socexplorerplugin* rootDev)
{
return rootDev==p_rootDev;
}
bool enumDeviceExists(qint32 baseAddress);
socExplorerEnumDevice *getEnumDevice(qint32 baseAddress);
New register explorer WIP...
r79 const QString& name(){return p_name;}
Jeandet Alexis
First init of SocExplorer Repository.
r0 public slots:
qint32 getEnumDeviceBaseAddress(int VID,int PID,int count=0);
Added qint32 SocExplorerEngine::getEnumDeviceCount(socexplorerplugin *plugin, int VID, int PID)...
r34 qint32 getEnumDeviceCount(int VID,int PID);
Jeandet Alexis
First init of SocExplorer Repository.
r0 socExplorerEnumDevice* addEnumDevice(int VID, int PID, qint32 baseAddress, const QString& name);
int addEnumDevice(socExplorerEnumDevice* device);
void writeReg(qint32 address,qint32 value);
qint32 readReg(qint32 address);
Added bool loadfile(abstractBinFile* file)...
r71 bool isLitleEndian();
Jeandet Alexis
First init of SocExplorer Repository.
r0 private:
New register explorer WIP...
r79 QString p_name;
Jeandet Alexis
First init of SocExplorer Repository.
r0 socexplorerplugin* p_rootDev;
QList<socExplorerEnumDevice*> p_enumeratedDevices;
QList<SOCclk*> clktree;
Added bool loadfile(abstractBinFile* file)...
r71 bool p_litleEndian;
Jeandet Alexis
First init of SocExplorer Repository.
r0 };
#endif // REGISTERSMODEL_H