Neonode zForce(TM) SDK
zForceTypes.h
Go to the documentation of this file.
1 
7 #ifndef ZFORCETYPES_H
8 #define ZFORCETYPES_H
9 
10 #ifdef COMPILING_ZFORCE_SDK
11 typedef struct zForceHandler zForceHandler;
12 #endif
13 typedef struct zForce zForce;
16 typedef struct Connection Connection;
18 typedef struct Device Device;
22 typedef struct SensorDevice SensorDevice;
24 typedef struct CoreDevice CoreDevice;
26 typedef struct AirDevice AirDevice;
28 typedef struct PlusDevice PlusDevice;
32 typedef struct Protocol Protocol;
36 typedef struct Transport Transport;
40 typedef struct DataFrame DataFrame;
44 typedef struct Message Message;
56 typedef struct TouchMessage TouchMessage;
69 typedef enum DeviceType DeviceType;
72 {
73  None = 0,
74  Platform = 1,
75  Sensor = 2,
76  Core = 4,
77  Air = 8,
78  Plus = 16,
79  Lighting = 32
80 };
81 
83 typedef enum MessageType MessageType;
86 {
87  EnableMessageType,
88  DisableMessageType,
89  OperationModesMessageType,
90  ResolutionMessageType,
91  TouchActiveAreaMessageType,
92  TouchMessageType,
93  DetectedObjectSizeRestrictionMessageType,
94  NumberOfTrackedObjectsMessageType,
95  FingerFrequencyMessageType,
96  IdleFrequencyMessageType,
97  ReverseTouchActiveAreaMessageType,
98  HighestValidMessageType = ReverseTouchActiveAreaMessageType
99 };
100 
105 {
106  Request,
107  Response,
108  Notification,
109  HighestValidMessageGroup = Notification
110 };
111 
116 {
119 };
120 
125 {
134 };
135 
137 typedef enum TouchEvent TouchEvent;
140 {
146 };
147 
152 {
155 };
156 
165 {
166  uint32_t X;
167  bool HasX;
168  uint32_t Y;
169  bool HasY;
170  uint32_t Z;
171  bool HasZ;
172 };
173 
183 {
184  uint32_t LowerBoundaryX;
185  uint32_t UpperBoundaryX;
186  bool HasX;
187  uint32_t LowerBoundaryY;
188  uint32_t UpperBoundaryY;
189  bool HasY;
190 };
191 
201 {
202  bool XIsReversed;
203  bool YIsReversed;
204 };
205 
206 #endif // ZFORCETYPES_H
OperationModes
Enum describing the OperationModes that a sensor can operate in.
Definition: zForceTypes.h:124
The Touch object is moving.
Definition: zForceTypes.h:142
No Mode set.
Definition: zForceTypes.h:126
bool HasY
True if the coordinate system has a Y axis.
Definition: zForceTypes.h:189
This structure represents a resolution message.
Definition: ResolutionMessage.h:21
bool HasZ
Is set to true if the coordinate system has a Z axis.
Definition: zForceTypes.h:171
uint32_t UpperBoundaryY
End of the Touch Active Area Y axis.
Definition: zForceTypes.h:188
Ghost touch detected.
Definition: zForceTypes.h:145
Struct representing a PlatformDevice.
Definition: PlatformDevice.h:26
Struct representing a CoreDevice.
Definition: CoreDevice.h:26
The main Connection struct.
Definition: Connection.h:56
This structure represents a number of tracked objects message.
Definition: NumberOfTrackedObjectsMessage.h:22
This structure represents a disable message.
Definition: DisableMessage.h:22
Struct containing the StreamingDataFrame information.
Definition: StreamingDataFrame.h:27
Transport struct. This structure represents the base class of all Transport definitions.
Definition: Transport.h:47
This structure represents a finger frequency message.
Definition: FingerFrequencyMessage.h:21
bool HasX
True if the coordinate system has a X axis.
Definition: zForceTypes.h:186
Special value used for error checking.
Definition: zForceTypes.h:133
uint32_t LowerBoundaryX
Start of the Touch Active Area X axis.
Definition: zForceTypes.h:184
Signals Mode.
Definition: zForceTypes.h:128
Definition: zForceTypes.h:131
This structure represents a operation mode message.
Definition: OperationModesMessage.h:24
Struct representing a PlusDevice.
Definition: PlusDevice.h:25
Object is in Portrait orientation.
Definition: zForceTypes.h:153
This structure represents a touch message.
Definition: TouchMessage.h:21
Struct representing a LightingDevice.
Definition: LightingDevice.h:25
bool HasY
Is set to true if the coordinate system has a Y axis.
Definition: zForceTypes.h:169
Detection Mode for Hid Devices.
Definition: zForceTypes.h:130
This structure represents whether the Touch Active Area coordinates are reversed or not...
Definition: zForceTypes.h:200
The main Message struct.
Definition: Message.h:21
Struct containing the DataFrame information.
Definition: DataFrame.h:27
Detection Mode (Touch).
Definition: zForceTypes.h:127
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:151
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:104
uint32_t Y
Y axis value.
Definition: zForceTypes.h:168
uint32_t Z
Z axis value.
Definition: zForceTypes.h:170
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:139
Invalid Touch event reported by Device.
Definition: zForceTypes.h:144
struct TransportEntry TransportEntry
Definition: Transport.h:36
This structure represents a detected object size restriction message.
Definition: DetectedObjectSizeRestrictionMessage.h:23
This structure represents the base class of all protocol definitions.
Definition: Protocol.h:31
Led Levels Mode.
Definition: zForceTypes.h:129
Object is in Landscape orientation.
Definition: zForceTypes.h:154
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:85
This structure represents an idle frequency message.
Definition: IdleFrequencyMessage.h:21
This structure represents a touch active area message.
Definition: ReverseTouchActiveAreaMessage.h:22
bool XIsReversed
True if the X axis is reversed.
Definition: zForceTypes.h:202
bool HasX
Is set to true if the coordinate system has a X axis.
Definition: zForceTypes.h:167
Main struct.
Definition: zForce.h:29
Struct representing a coordinate.
Definition: zForceTypes.h:164
Get information from device.
Definition: zForceTypes.h:117
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:71
uint32_t LowerBoundaryY
Start of the Touch Active Area Y axis.
Definition: zForceTypes.h:187
New Touch object detected.
Definition: zForceTypes.h:141
uint32_t X
X axis value.
Definition: zForceTypes.h:166
uint32_t UpperBoundaryX
End of the Touch Active Area X axis.
Definition: zForceTypes.h:185
Brief Device base class.
Definition: Device.h:24
Struct representing a SensorDevice, a meta device.
Definition: SensorDevice.h:28
struct ProtocolEntry ProtocolEntry
Definition: zForceTypes.h:34
MessageAction
Enum describing the action of a message.
Definition: zForceTypes.h:115
This structure represents the Touch Active Area of a sensor.
Definition: zForceTypes.h:182
This structure represents an enable message.
Definition: EnableMessage.h:23
Set information on device.
Definition: zForceTypes.h:118
Struct representing an AirDevice.
Definition: AirDevice.h:25
The Touch object is no longer detected.
Definition: zForceTypes.h:143
This structure represents a touch active area message.
Definition: TouchActiveAreaMessage.h:22
bool YIsReversed
True if the Y axis is reversed.
Definition: zForceTypes.h:203