Neonode zForce(TM) SDK

Device.h
Go to the documentation of this file.
1
12 #ifndef DEVICE_DEVICE_H
13 #define DEVICE_DEVICE_H 1
14
15 #ifndef ZFORCECOMMON_H
16 #error Please include "zForceCommon.h" before this file.
17 #endif // ZFORCECOMMON_H
18
25 struct Device
26 {
27 zForce * zForce;
28 Connection * Connection;
29 DeviceType DeviceType;
30 uint32_t DeviceIndex;
31 Device ** StorageDevices;
32 uint32_t NumberOfStorageDevices;
33 void * PrivateProtocolData;
43 void ( * Destructor)(Device * self);
44 };
45
46 #ifdef __cplusplus
47 extern "C"
48 {
49 #endif // __cplusplus
50
67 DLLINTERNAL Device * Device_GetInstance (Connection * connection, DeviceType deviceType, uint32_t deviceIndex);
68
85 DLLINTERNAL Device * Device_New (Connection * connection, DeviceType deviceType, uint32_t deviceIndex, size_t size);
86
87 #ifdef __cplusplus
88 }
89 #endif // __cplusplus
90
91 #if defined(USE_PLATFORMDEVICE) || !defined(COMPILING_ZFORCE_SDK)
92 #include <PlatformDevice.h>
93 #endif // defined(USE_PLATFORMDEVICE) || !defined(COMPILING_ZFORCE_SDK)
94
95 #if defined(USE_SENSORDEVICE) || !defined(COMPILING_ZFORCE_SDK)
96 #include <SensorDevice.h>
97 #endif // defined(USE_SENSORDEVICE) || !defined(COMPILING_ZFORCE_SDK)
98
99 #if defined(USE_COREDEVICE) || !defined(COMPILING_ZFORCE_SDK)
100 #include <CoreDevice.h>
101 #endif // defined(USE_COREDEVICE) || !defined(COMPILING_ZFORCE_SDK)
102
103 #if defined(USE_AIRDEVICE) || !defined(COMPILING_ZFORCE_SDK)
104 #include <AirDevice.h>
105 #endif // defined(USE_AIRDEVICE) || !defined(COMPILING_ZFORCE_SDK)
106
107 #if defined(USE_PLUSDEVICE) || !defined(COMPILING_ZFORCE_SDK)
108 #include <PlusDevice.h>
109 #endif // defined(USE_PLUSDEVICE) || !defined(COMPILING_ZFORCE_SDK)
110
111 #if defined(USE_LIGHTINGDEVICE) || !defined(COMPILING_ZFORCE_SDK)
112 #include <LightingDevice.h>
113 #endif // defined(USE_LIGHTINGDEVICE) || !defined(COMPILING_ZFORCE_SDK)
114
115 #endif // DEVICE_DEVICE_H
AirDevice.h
Handles requests to the AirDevice.
CoreDevice.h
Handles requests to the CoreDevice.
Device_GetInstance
DLLINTERNAL Device * Device_GetInstance(Connection *connection, DeviceType deviceType, uint32_t deviceIndex)
Internal call to get a new Device with the specified Type and Index.
Device_New
DLLINTERNAL Device * Device_New(Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
Internal call used only by Device and subclasses to create a new base Device.
LightingDevice.h
Handles requests to the LightingDevice.
PlatformDevice.h
Handles requests to the PlatformDevice.
PlusDevice.h
Handles requests to the PlusDevice.
SensorDevice.h
Handles requests to the SensorDevice, a meta device.
Connection
The main Connection struct.
Definition: Connection.h:66
Device
Device base class.
Definition: Device.h:26
Device::StorageDevices
Device ** StorageDevices
Future: List of Storage Devices. Will change type during implementation.
Definition: Device.h:31
Device::DeviceType
DeviceType DeviceType
Which type of Device this is.
Definition: Device.h:29
Device::Connection
Connection * Connection
The Connection this Device is part of.
Definition: Device.h:28
Device::zForce
zForce * zForce
Pointer to zForce.
Definition: Device.h:27
Device::Destructor
void(* Destructor)(Device *self)
Destructor.
Definition: Device.h:43
Device::PrivateProtocolData
void * PrivateProtocolData
Private Protocol Data.
Definition: Device.h:33
Device::NumberOfStorageDevices
uint32_t NumberOfStorageDevices
Number of Storage Devices.
Definition: Device.h:32
Device::DeviceIndex
uint32_t DeviceIndex
Which Device Index this device has.
Definition: Device.h:30
zForce
Main struct.
Definition: zForce.h:29
DeviceType
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:90