Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SensorDevice.h
Go to the documentation of this file.
1
13 #if !defined(DEVICE_SENSORDEVICE_SENSORDEVICE_H) && !defined(CONTAINS_SENSORDEVICE)
14
15 #ifndef ZFORCECOMMON_H
16 #error Please include "zForceCommon.h" before this file.
17 #endif // ZFORCECOMMON_H
18
27 struct SensorDevice
28 {
29 #endif // !defined(DEVICE_SENSORDEVICE_SENSORDEVICE_H) && !defined(CONTAINS_SENSORDEVICE)
30 #if !defined(DEVICE_SENSORDEVICE_SENSORDEVICE_H) || defined(CONTAINS_SENSORDEVICE)
31 #define CONTAINS_DEVICE
32 #include <Device.h>
33 #undef CONTAINS_DEVICE
34 CartesianCoordinates Resolution;
35 TouchActiveArea TouchActiveArea;
36 ReverseTouchActiveArea ReverseTouchActiveArea;
37
53 bool ( * GetEnable)(SensorDevice * self);
54
76 bool ( * SetEnable)(SensorDevice * self, bool continuousMode, uint32_t numberOfMessages);
77
92 bool ( * GetDisable)(SensorDevice * self);
93
110 bool ( * SetDisable)(SensorDevice * self);
111
126 bool ( * GetOperationModes)(SensorDevice * self);
127
150 bool ( * SetOperationModes)(SensorDevice * self, OperationModes modeMask, OperationModes modeValues);
151
166 bool ( * GetResolution)(SensorDevice * self);
167
191 bool ( * SetResolution)(SensorDevice * self, uint32_t x, bool xIsValid,
192 uint32_t y, bool yIsValid,
193 uint32_t z, bool zIsValid);
194
209 bool ( * GetReverseTouchActiveArea)(SensorDevice * self);
210
228 bool ( * SetReverseTouchActiveArea)(SensorDevice * self, bool xIsReversed, bool yIsReversed);
229
243 bool( * GetFlipXY)(SensorDevice * self);
244
260 bool ( * SetFlipXY)(SensorDevice * self, bool axesAreFlipped);
261
275 bool( * GetReflectiveEdgeFilter)(SensorDevice * self);
276
292 bool ( * SetReflectiveEdgeFilter)(SensorDevice * self, bool isFilterOn);
293
307 bool( * GetMergeTouches)(SensorDevice * self);
308
324 bool ( * SetMergeTouches)(SensorDevice * self, bool areTouchesMerged);
325
340 bool ( * GetTouchActiveArea)(SensorDevice * self);
341
363 bool ( * SetTouchActiveArea)(SensorDevice * self, uint32_t lowerBoundaryX, uint32_t upperBoundaryX, bool xIsValid,
364 uint32_t lowerBoundaryY, uint32_t upperBoundaryY, bool yIsValid);
365
380 bool ( * GetDetectedObjectSizeRestriction)(SensorDevice * self);
381
401 bool ( * SetDetectedObjectSizeRestriction)(SensorDevice * self,
402 uint32_t minimumSize,
403 uint32_t maximumSize,
404 bool minimumSizeIsValid,
405 bool maximumSizeIsValid);
406
421 bool ( * GetNumberOfTrackedObjects) (SensorDevice * self);
422
438 bool ( * SetNumberOfTrackedObjects) (SensorDevice * self,
439 uint32_t numberOfTrackedObjects);
440
455 bool ( * GetOffset) (SensorDevice * self);
456
475 bool ( * SetOffset) (SensorDevice * self, uint32_t offsetX, bool offsetXIsValid,
476 uint32_t offsetY, bool offsetYIsValid);
477
492 bool ( * GetHidDisplaySize) (SensorDevice * self);
493
512 bool ( * SetHidDisplaySize) (SensorDevice * self, uint32_t sizeX, bool sizeXIsValid,
513 uint32_t sizeY, bool sizeYIsValid);
514
515 #endif // !defined(DEVICE_SENSORDEVICE_SENSORDEVICE_H) || defined(CONTAINS_SENSORDEVICE)
516 #if !defined(DEVICE_SENSORDEVICE_SENSORDEVICE_H) && !defined(CONTAINS_SENSORDEVICE)
517 };
518
519 #ifdef __cplusplus
520 extern "C"
521 {
522 #endif // __cplusplus
523
538 DLLINTERNAL SensorDevice * SensorDevice_New (Connection * connection, DeviceType deviceType, uint32_t deviceIndex,
539 size_t size);
540
541 #ifdef __cplusplus
542 }
543 #endif // __cplusplus
544
545 #define DEVICE_SENSORDEVICE_SENSORDEVICE_H
546 #endif // !defined(DEVICE_SENSORDEVICE_SENSORDEVICE_H) && !defined(CONTAINS_SENSORDEVICE)
547
OperationModes
OperationModes
Enum describing the OperationModes that a sensor can operate in.
Definition: zForceTypes.h:143
Connection
The main Connection struct.
Definition: Connection.h:64
SensorDevice
struct SensorDevice SensorDevice
Definition: zForceTypes.h:23
TouchActiveArea
struct TouchActiveArea TouchActiveArea
Definition: zForceTypes.h:202
ReverseTouchActiveArea
This structure represents whether the Touch Active Area coordinates are reversed or not...
Definition: zForceTypes.h:232
CartesianCoordinates
Struct representing a coordinate.
Definition: zForceTypes.h:186
DeviceType
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:82
ReverseTouchActiveArea
struct ReverseTouchActiveArea ReverseTouchActiveArea
Definition: zForceTypes.h:225
Device.h
Base Device class.
TouchActiveArea
This structure represents the Touch Active Area of a sensor.
Definition: zForceTypes.h:209