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;
67 typedef enum DeviceType DeviceType;
70 {
71  None = 0,
72  Platform = 1,
73  Sensor = 2,
74  Core = 4,
75  Air = 8,
76  Plus = 16,
77  Lighting = 32
78 };
79 
81 typedef enum MessageType MessageType;
84 {
85  EnableMessageType,
86  DisableMessageType,
87  OperationModesMessageType,
88  ResolutionMessageType,
89  TouchActiveAreaMessageType,
90  TouchMessageType,
91  DetectedObjectSizeRestrictionMessageType,
92  NumberOfTrackedObjectsMessageType,
93  FingerFrequencyMessageType,
94  IdleFrequencyMessageType,
95  HighestValidMessageType = IdleFrequencyMessageType
96 };
97 
102 {
103  Request,
104  Response,
105  Notification,
106  HighestValidMessageGroup = Notification
107 };
108 
113 {
116 };
117 
122 {
131 };
132 
134 typedef enum TouchEvent TouchEvent;
137 {
143 };
144 
149 {
152 };
153 
162 {
163  uint32_t X;
164  bool HasX;
165  uint32_t Y;
166  bool HasY;
167  uint32_t Z;
168  bool HasZ;
169 };
170 
180 {
181  uint32_t LowerBoundaryX;
182  uint32_t UpperBoundaryX;
183  bool HasX;
184  bool XIsReversed;
185  uint32_t LowerBoundaryY;
186  uint32_t UpperBoundaryY;
187  bool HasY;
188  bool YIsReversed;
189 };
190 
191 #endif // ZFORCETYPES_H
OperationModes
Enum describing the OperationModes that a sensor can operate in.
Definition: zForceTypes.h:121
The Touch object is moving.
Definition: zForceTypes.h:139
No Mode set.
Definition: zForceTypes.h:123
bool HasY
True if the coordinate system has a Y axis.
Definition: zForceTypes.h:187
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:168
uint32_t UpperBoundaryY
End of the Touch Active Area Y axis.
Definition: zForceTypes.h:186
Ghost touch detected.
Definition: zForceTypes.h:142
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:183
Special value used for error checking.
Definition: zForceTypes.h:130
uint32_t LowerBoundaryX
Start of the Touch Active Area X axis.
Definition: zForceTypes.h:181
Signals Mode.
Definition: zForceTypes.h:125
Definition: zForceTypes.h:128
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:150
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:166
Detection Mode for Hid Devices.
Definition: zForceTypes.h:127
The main Message struct.
Definition: Message.h:21
Struct containing the DataFrame information.
Definition: DataFrame.h:27
Detection Mode (Touch).
Definition: zForceTypes.h:124
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:148
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:101
uint32_t Y
Y axis value.
Definition: zForceTypes.h:165
uint32_t Z
Z axis value.
Definition: zForceTypes.h:167
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:136
Invalid Touch event reported by Device.
Definition: zForceTypes.h:141
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:126
Object is in Landscape orientation.
Definition: zForceTypes.h:151
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:83
This structure represents an idle frequency message.
Definition: IdleFrequencyMessage.h:21
bool HasX
Is set to true if the coordinate system has a X axis.
Definition: zForceTypes.h:164
Main struct.
Definition: zForce.h:29
Struct representing a coordinate.
Definition: zForceTypes.h:161
bool XIsReversed
True if the X axis is inverted.
Definition: zForceTypes.h:184
Get information from device.
Definition: zForceTypes.h:114
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:69
uint32_t LowerBoundaryY
Start of the Touch Active Area Y axis.
Definition: zForceTypes.h:185
New Touch object detected.
Definition: zForceTypes.h:138
bool YIsReversed
True if the Y axis is inverted.
Definition: zForceTypes.h:188
uint32_t X
X axis value.
Definition: zForceTypes.h:163
uint32_t UpperBoundaryX
End of the Touch Active Area X axis.
Definition: zForceTypes.h:182
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:112
This structure represents the Touch Active Area of a sensor.
Definition: zForceTypes.h:179
This structure represents an enable message.
Definition: EnableMessage.h:23
Set information on device.
Definition: zForceTypes.h:115
Struct representing an AirDevice.
Definition: AirDevice.h:25
The Touch object is no longer detected.
Definition: zForceTypes.h:140
This structure represents a touch active area message.
Definition: TouchActiveAreaMessage.h:22