Neonode zForce(TM) SDK
PlatformDevice.h
Go to the documentation of this file.
1 
11 #ifndef DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
12 #define DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H 1
13 
14 #ifndef ZFORCECOMMON_H
15  #error Please include "zForceCommon.h" before this file.
16 #endif // ZFORCECOMMON_H
17 
24 {
28  uint32_t DeviceIndex;
43  void ( * Destructor)(Device * self);
57 
72  bool ( * SetFingerFrequency)(PlatformDevice * self, uint32_t frequency);
73 
87  bool ( * GetIdleFrequency)(PlatformDevice * self);
88 
103  bool ( * SetIdleFrequency)(PlatformDevice * self, uint32_t frequency);
104 
119 
135  bool ( * SetMcuUniqueIdentifier)(PlatformDevice * self, uint8_t * identifier, uint32_t bufferSize);
136 };
137 
138 #ifdef __cplusplus
139 extern "C"
140 {
141 #endif // __cplusplus
142 
158 DLLINTERNAL PlatformDevice * PlatformDevice_New (Connection * connection, DeviceType deviceType, uint32_t deviceIndex,
159  size_t size);
160 
161 #ifdef __cplusplus
162 }
163 #endif // _cplusplus
164 
165 #endif // DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
166 
DLLINTERNAL PlatformDevice * PlatformDevice_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used to create a new PlatformDevice.
The main Connection struct.
Definition: Connection.h:66
Device base class.
Definition: Device.h:26
Struct representing a PlatformDevice.
Definition: PlatformDevice.h:24
bool(* GetFingerFrequency)(PlatformDevice *self)
Get the finger frequency.
Definition: PlatformDevice.h:56
Connection * Connection
The Connection this Device is part of.
Definition: PlatformDevice.h:26
uint32_t DeviceIndex
Which Device Index this device has.
Definition: PlatformDevice.h:28
DeviceType DeviceType
Which type of Device this is.
Definition: PlatformDevice.h:27
Device ** StorageDevices
Future: List of Storage Devices. Will change type during implementation.
Definition: PlatformDevice.h:29
bool(* SetFingerFrequency)(PlatformDevice *self, uint32_t frequency)
Set the finger frequency.
Definition: PlatformDevice.h:72
zForce * zForce
Pointer to zForce.
Definition: PlatformDevice.h:25
uint32_t NumberOfStorageDevices
Number of Storage Devices.
Definition: PlatformDevice.h:30
bool(* GetMcuUniqueIdentifier)(PlatformDevice *self)
Get the Mcu Unique Identifier.
Definition: PlatformDevice.h:118
void * PrivateProtocolData
Private Protocol Data.
Definition: PlatformDevice.h:31
bool(* SetIdleFrequency)(PlatformDevice *self, uint32_t frequency)
Set the idle frequency.
Definition: PlatformDevice.h:103
void(* Destructor)(Device *self)
Destructor.
Definition: PlatformDevice.h:43
bool(* SetMcuUniqueIdentifier)(PlatformDevice *self, uint8_t *identifier, uint32_t bufferSize)
Set the Mcu Unique Identifier.
Definition: PlatformDevice.h:135
bool(* GetIdleFrequency)(PlatformDevice *self)
Get the idle frequency.
Definition: PlatformDevice.h:87
Main struct.
Definition: zForce.h:29
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:90