Neonode zForce(TM) SDK
PlatformDevice.h
Go to the documentation of this file.
1 
12 #if !defined(DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H) && !defined(CONTAINS_PLATFORMDEVICE)
13 
14 #ifndef ZFORCECOMMON_H
15  #error Please include "zForceCommon.h" before this file.
16 #endif // ZFORCECOMMON_H
17 
25 struct PlatformDevice
26 {
27 #endif // !defined(DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H) && !defined(CONTAINS_PLATFORMDEVICE)
28 #if !defined(DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H) || defined(CONTAINS_PLATFORMDEVICE)
29  #define CONTAINS_DEVICE
30  #include <Device.h>
31  #undef CONTAINS_DEVICE
32 
46  bool ( * GetFingerFrequency)(PlatformDevice * self);
47 
63  bool ( * SetFingerFrequency)(PlatformDevice * self, uint32_t frequency);
64 
79  bool ( * GetIdleFrequency)(PlatformDevice * self);
80 
94  bool ( * SetIdleFrequency)(PlatformDevice * self, uint32_t frequency);
95 
110  bool ( * GetMcuUniqueIdentifier)(PlatformDevice * self);
111 
128  bool ( * SetMcuUniqueIdentifier)(PlatformDevice * self, uint8_t * identifier, uint32_t bufferSize);
129 
130 #endif // !defined(DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H) || defined(CONTAINS_PLATFORMDEVICE)
131 #if !defined(DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H) && !defined(CONTAINS_PLATFORMDEVICE)
132 };
133 
134 #ifdef __cplusplus
135 extern "C"
136 {
137 #endif // __cplusplus
138 
153 DLLINTERNAL PlatformDevice * PlatformDevice_New (Connection * connection, DeviceType deviceType, uint32_t deviceIndex,
154  size_t size);
155 
156 #ifdef __cplusplus
157 }
158 #endif // _cplusplus
159 
160 #define DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
161 #endif // !defined(DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H) && !defined(CONTAINS_PLATFORMDEVICE)
162 
The main Connection struct.
Definition: Connection.h:64
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:86
Base Device class.
struct PlatformDevice PlatformDevice
Definition: zForceTypes.h:21