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, uint32_t frequency);
61
76 bool ( * GetIdleFrequency)(PlatformDevice * self);
77
91 bool ( * SetIdleFrequency)(PlatformDevice * self, uint32_t frequency);
92
107 bool ( * GetMcuUniqueIdentifier)(PlatformDevice * self);
108
125 bool ( * SetMcuUniqueIdentifier)(PlatformDevice * self, uint8_t * identifier, uint32_t bufferSize);
126
127 };
128
143 DLLINTERNAL PlatformDevice * PlatformDevice_New (Connection * connection,
144 DeviceType deviceType,
145 uint32_t deviceIndex,
146 size_t size);
147
148 #endif // DEVICE_PLATFORMDEVICE_PLATFORMDEVICE_H
149
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:76
PlatformDevice::GetMcuUniqueIdentifier
bool(* GetMcuUniqueIdentifier)(PlatformDevice *self)
Get the Mcu Unique Identifier from the platform.
Definition: PlatformDevice.h:107
DeviceType
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:77
PlatformDevice::SetIdleFrequency
bool(* SetIdleFrequency)(PlatformDevice *self, uint32_t frequency)
Set the idle frequency.
Definition: PlatformDevice.h:91
PlatformDevice::SetMcuUniqueIdentifier
bool(* SetMcuUniqueIdentifier)(PlatformDevice *self, uint8_t *identifier, uint32_t bufferSize)
Set the Mcu Unique Identifier from the platform.
Definition: PlatformDevice.h:125
PlatformDevice::GetFingerFrequency
bool(* GetFingerFrequency)(PlatformDevice *self)
Get the current finger frequency.
Definition: PlatformDevice.h:43