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.
36 lines
628 B
36 lines
628 B
#ifndef BASEREGISTER_H
|
|
#define BASEREGISTER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "api.h"
|
|
#include "RegisterField.h"
|
|
|
|
class BaseRegister : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
quint32 _bar;
|
|
quint32 _offset;
|
|
quint32 _value;
|
|
quint32 _readValue;
|
|
bool _isSync;
|
|
UltraSoundDevice _usd;
|
|
QList<RegisterField> _fields;
|
|
|
|
void appendToList(const RegisterField& registerField);
|
|
|
|
public:
|
|
explicit BaseRegister(quint32 _bar, quint32 _offset, const UltraSoundDevice& _usd);
|
|
|
|
quint32 read();
|
|
void write();
|
|
|
|
//uncrustify off
|
|
public slots:
|
|
void fieldUpdated(quint32 _value, quint32 clearMask);
|
|
//uncrustify on
|
|
};
|
|
|
|
#endif //BASEREGISTER_H
|
|
|