25 #ifndef MAGNETOMETERADAPTOR_NCDK_H 26 #define MAGNETOMETERADAPTOR_NCDK_H 28 #include "sysfsadaptor.h" 29 #include "deviceadaptorringbuffer.h" 39 Q_PROPERTY(
int overflowLimit READ overflowLimit WRITE setOverflowLimit);
61 bool setInterval(
const unsigned int value,
const int sessionId);
72 void processSample(
int pathId,
int fd);
74 QByteArray powerStateFilePath_;
75 QByteArray sensAdjFilePath_;
77 int x_adj, y_adj, z_adj;
79 DeviceAdaptorRingBuffer<TimedXyzData>* magnetometerBuffer_;
81 bool setPowerState(
bool value)
const;
82 void getSensitivityAdjustment(
int &x,
int &y,
int &z)
const;
83 int adjustPos(
const int value,
const int adj)
const;
84 int intervalCompensation_;
92 void setOverflowLimit(
int limit);
99 int overflowLimit()
const;
102 #endif // MAGNETOMETERADAPTOR_NCDK_H ~MagnetometerAdaptorNCDK()
static DeviceAdaptor * factoryMethod(const QString &id)
Factory method for gaining a new instance of MagnetometerAdaptor class.
bool setInterval(const unsigned int value, const int sessionId)
MagnetometerAdaptorNCDK(const QString &id)
Constructor.
Basic datatypes for filters.