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;
75 typedef enum DeviceType DeviceType;
78 {
79  None = 0,
80  Platform = 1,
81  Sensor = 2,
82  Core = 4,
83  Air = 8,
84  Plus = 16,
85  Lighting = 32
86 };
87 
89 typedef enum MessageType MessageType;
92 {
93  EnableMessageType,
94  DisableMessageType,
95  OperationModesMessageType,
96  ResolutionMessageType,
97  TouchActiveAreaMessageType,
98  TouchMessageType,
99  DetectedObjectSizeRestrictionMessageType,
100  NumberOfTrackedObjectsMessageType,
101  FingerFrequencyMessageType,
102  IdleFrequencyMessageType,
103  ReverseTouchActiveAreaMessageType,
104  McuUniqueIdentifierMessageType,
105  OffsetMessageType,
106  HidDisplaySizeMessageType,
107  HighestValidMessageType = HidDisplaySizeMessageType
108 };
109 
114 {
115  Request,
116  Response,
117  Notification,
118  HighestValidMessageGroup = Notification
119 };
120 
125 {
128 };
129 
134 {
143 };
144 
146 typedef enum TouchEvent TouchEvent;
149 {
155 };
156 
161 {
164 };
165 
174 {
175  uint32_t X;
176  bool HasX;
177  uint32_t Y;
178  bool HasY;
179  uint32_t Z;
180  bool HasZ;
181 };
182 
192 {
193  uint32_t LowerBoundaryX;
194  uint32_t UpperBoundaryX;
195  bool HasX;
196  uint32_t LowerBoundaryY;
197  uint32_t UpperBoundaryY;
198  bool HasY;
199 };
200 
210 {
211  bool XIsReversed;
212  bool YIsReversed;
213 };
214 
215 #endif // ZFORCETYPES_H
OperationModes
Enum describing the OperationModes that a sensor can operate in.
Definition: zForceTypes.h:133
The Touch object is moving.
Definition: zForceTypes.h:151
No Mode set.
Definition: zForceTypes.h:135
bool HasY
True if the coordinate system has a Y axis.
Definition: zForceTypes.h:198
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:180
uint32_t UpperBoundaryY
End of the Touch Active Area Y axis.
Definition: zForceTypes.h:197
Ghost touch detected.
Definition: zForceTypes.h:154
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
This structure represents a Hid Display Size Message.
Definition: HidDisplaySizeMessage.h:21
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:195
Special value used for error checking.
Definition: zForceTypes.h:142
uint32_t LowerBoundaryX
Start of the Touch Active Area X axis.
Definition: zForceTypes.h:193
Signals Mode.
Definition: zForceTypes.h:137
Definition: zForceTypes.h:140
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:162
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:178
Detection Mode for Hid Devices.
Definition: zForceTypes.h:139
This structure represents whether the Touch Active Area coordinates are reversed or not...
Definition: zForceTypes.h:209
The main Message struct.
Definition: Message.h:21
Struct containing the DataFrame information.
Definition: DataFrame.h:27
Detection Mode (Touch).
Definition: zForceTypes.h:136
TouchOrientation
Enum describing what orientation touches are generated in.
Definition: zForceTypes.h:160
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:113
uint32_t Y
Y axis value.
Definition: zForceTypes.h:177
uint32_t Z
Z axis value.
Definition: zForceTypes.h:179
TouchEvent
Enum describing what state a touch can be in.
Definition: zForceTypes.h:148
Invalid Touch event reported by Device.
Definition: zForceTypes.h:153
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:138
Object is in Landscape orientation.
Definition: zForceTypes.h:163
MessageType
Enum describing the different message types that exists.
Definition: zForceTypes.h:91
This structure represents an idle frequency message.
Definition: IdleFrequencyMessage.h:21
This structure represents a reverse touch active area message.
Definition: ReverseTouchActiveAreaMessage.h:22
bool XIsReversed
True if the X axis is reversed.
Definition: zForceTypes.h:211
bool HasX
Is set to true if the coordinate system has a X axis.
Definition: zForceTypes.h:176
Main struct.
Definition: zForce.h:29
Struct representing a coordinate.
Definition: zForceTypes.h:173
Get information from device.
Definition: zForceTypes.h:126
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:77
uint32_t LowerBoundaryY
Start of the Touch Active Area Y axis.
Definition: zForceTypes.h:196
New Touch object detected.
Definition: zForceTypes.h:150
uint32_t X
X axis value.
Definition: zForceTypes.h:175
uint32_t UpperBoundaryX
End of the Touch Active Area X axis.
Definition: zForceTypes.h:194
Brief Device base class.
Definition: Device.h:24
Struct representing a SensorDevice, a meta device.
Definition: SensorDevice.h:28
This structure represents an offset message.
Definition: OffsetMessage.h:21
struct ProtocolEntry ProtocolEntry
Definition: zForceTypes.h:34
MessageAction
Enum describing the action of a message.
Definition: zForceTypes.h:124
This structure represents the Touch Active Area of a sensor.
Definition: zForceTypes.h:191
This structure represents an enable message.
Definition: EnableMessage.h:23
This structure represents a mcu unique identifier message.
Definition: McuUniqueIdentifierMessage.h:24
Set information on device.
Definition: zForceTypes.h:127
Struct representing an AirDevice.
Definition: AirDevice.h:25
The Touch object is no longer detected.
Definition: zForceTypes.h:152
This structure represents a touch active area message.
Definition: TouchActiveAreaMessage.h:22
bool YIsReversed
True if the Y axis is reversed.
Definition: zForceTypes.h:212