Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

PlatformDevice.h
Go to the documentation of this file.
1
12 #ifndef DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
13 #define DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
14
15 #ifndef ZFORCECOMMON_H
16 #error Please include "zForceCommon.h" before this file.
17 #endif // ZFORCECOMMON_H
18
26 struct PlatformDevice
27 {
28 Device;
29
43 bool ( * GetFingerFrequency)(PlatformDevice * self);
44
60 bool ( * SetFingerFrequency)(PlatformDevice * self,
61 uint32_t frequency);
62
77 bool ( * GetIdleFrequency)(PlatformDevice * self);
78
79
93 bool ( * SetIdleFrequency)(PlatformDevice * self,
94 uint32_t frequency);
95
110 bool ( * GetMcuUniqueIdentifier)(PlatformDevice * self);
111
112 };
113
128 DLLINTERNAL PlatformDevice * PlatformDevice_New (Connection * connection,
129 DeviceType deviceType,
130 uint32_t deviceIndex,
131 size_t size);
132
133 #endif // DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
134
PlatformDevice_New
DLLINTERNAL PlatformDevice * PlatformDevice_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used to create a new PlatformDevice.
PlatformDevice
Struct representing a PlatformDevice.
Definition: PlatformDevice.h:26
PlatformDevice::SetFingerFrequency
bool(* SetFingerFrequency)(PlatformDevice *self, uint32_t frequency)
Set the finger frequency.
Definition: PlatformDevice.h:60
Connection
The main Connection struct.
Definition: Connection.h:56
PlatformDevice::Device
Device
Base device.
Definition: PlatformDevice.h:28
PlatformDevice::GetIdleFrequency
bool(* GetIdleFrequency)(PlatformDevice *self)
Get the current idle frequency.
Definition: PlatformDevice.h:77
PlatformDevice::GetMcuUniqueIdentifier
bool(* GetMcuUniqueIdentifier)(PlatformDevice *self)
Get the Mcu Identifier from the platform.
Definition: PlatformDevice.h:110
DeviceType
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:73
PlatformDevice::SetIdleFrequency
bool(* SetIdleFrequency)(PlatformDevice *self, uint32_t frequency)
Set the idle frequency.
Definition: PlatformDevice.h:93
PlatformDevice::GetFingerFrequency
bool(* GetFingerFrequency)(PlatformDevice *self)
Get the current finger frequency.
Definition: PlatformDevice.h:43