Neonode zForce(TM) SDK
SensorDevice.h
Go to the documentation of this file.
1 
13 #ifndef DEVICE_SENSORDEVICE_SENSORDEVICE_H
14 #define DEVICE_SENSORDEVICE_SENSORDEVICE_H
15 
16 #ifndef ZFORCECOMMON_H
17  #error Please include "zForceCommon.h" before this file.
18 #endif // ZFORCECOMMON_H
19 
21 {
22  Device;
23  CartesianCoordinates Resolution;
25 
41  bool ( * GetEnable)(SensorDevice * self);
63  bool ( * SetEnable)(SensorDevice * self,
64  bool continuousMode,
65  uint32_t numberOfMessages);
66 
81  bool ( * GetDisable)(SensorDevice * self);
98  bool ( * SetDisable)(SensorDevice * self);
99 
114  bool ( * GetOperationModes)(SensorDevice * self);
137  bool ( * SetOperationModes)(SensorDevice * self,
138  OperationModes modeMask,
139  OperationModes modeValues);
140 
155  bool ( * GetResolution)(SensorDevice * self);
179  bool ( * SetResolution)(SensorDevice * self,
180  uint32_t x, bool xIsValid,
181  uint32_t y, bool yIsValid,
182  uint32_t z, bool zIsValid);
183 
198  bool ( * GetTouchActiveArea)(SensorDevice * self);
199 
224  uint32_t lowerBoundaryX,
225  uint32_t upperBoundaryX,
226  bool xIsValid,
227  bool xIsReversed,
228  uint32_t lowerBoundaryY,
229  uint32_t upperBoundaryY,
230  bool yIsValid,
231  bool yIsReversed);
232 
268  uint32_t minimumSize,
269  uint32_t maximumSize,
270  bool minimumSizeIsValid,
271  bool maximumSizeIsValid);
272 
288 
305  uint32_t numberOfTrackedObjects);
306 
307 };
308 
321 DLLINTERNAL SensorDevice * SensorDevice_New (Connection * connection,
322  DeviceType deviceType,
323  uint32_t deviceIndex,
324  size_t size);
325 
326 #endif // DEVICE_SENSORDEVICE_SENSORDEVICE_H
327 
OperationModes
Definition: zForceTypes.h:87
bool(* GetOperationModes)(SensorDevice *self)
Get the current Operating Modes of the Device.
Definition: SensorDevice.h:114
bool(* GetDisable)(SensorDevice *self)
Ask the Device if it is disabled.
Definition: SensorDevice.h:81
bool(* GetDetectedObjectSizeRestriction)(SensorDevice *self)
Get the current Detected Object Size Restriction of the Device.
Definition: SensorDevice.h:247
bool(* SetDetectedObjectSizeRestriction)(SensorDevice *self, uint32_t minimumSize, uint32_t maximumSize, bool minimumSizeIsValid, bool maximumSizeIsValid)
Set the current Detected Object Size Restriction of the Device.
Definition: SensorDevice.h:267
The main Connection struct.
Definition: Connection.h:43
bool(* SetResolution)(SensorDevice *self, uint32_t x, bool xIsValid, uint32_t y, bool yIsValid, uint32_t z, bool zIsValid)
Set the current Resolution of the Device.
Definition: SensorDevice.h:179
bool(* SetNumberOfTrackedObjects)(SensorDevice *self, uint32_t numberOfTrackedObjects)
Set the number of tracked objects.
Definition: SensorDevice.h:304
DLLINTERNAL SensorDevice * SensorDevice_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used to create a new SensorDevice.
bool(* GetNumberOfTrackedObjects)(SensorDevice *self)
Get the number of tracked objects.
Definition: SensorDevice.h:287
bool(* GetEnable)(SensorDevice *self)
Ask the Device if it is enabled.
Definition: SensorDevice.h:41
bool(* SetOperationModes)(SensorDevice *self, OperationModes modeMask, OperationModes modeValues)
Set the current Operating Modes of the Device.
Definition: SensorDevice.h:137
bool(* GetTouchActiveArea)(SensorDevice *self)
Get the current Touch Active Area of the Device.
Definition: SensorDevice.h:198
bool(* SetDisable)(SensorDevice *self)
Disable the device.
Definition: SensorDevice.h:98
Definition: zForceTypes.h:117
bool(* SetTouchActiveArea)(SensorDevice *self, uint32_t lowerBoundaryX, uint32_t upperBoundaryX, bool xIsValid, bool xIsReversed, uint32_t lowerBoundaryY, uint32_t upperBoundaryY, bool yIsValid, bool yIsReversed)
Set the current Touch Active Area of the Device.
Definition: SensorDevice.h:223
Brief Device base class.
Definition: Device.h:24
Definition: SensorDevice.h:20
bool(* GetResolution)(SensorDevice *self)
Get the current Resolution of the Device.
Definition: SensorDevice.h:155
Definition: zForceTypes.h:128
bool(* SetEnable)(SensorDevice *self, bool continuousMode, uint32_t numberOfMessages)
Enable the device.
Definition: SensorDevice.h:63