Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Device.h
Go to the documentation of this file.
1
12 #if !defined(DEVICE_DEVICE_H) && !defined(CONTAINS_DEVICE)
13
14 #ifndef ZFORCECOMMON_H
15 #error Please include "zForceCommon.h" before this file.
16 #endif // ZFORCECOMMON_H
17
23 struct Device
24 {
25 #endif // !defined(DEVICE_DEVICE_H) && !defined(CONTAINS_DEVICE)
26 #if !defined(DEVICE_DEVICE_H) || defined(CONTAINS_DEVICE)
27 zForce * zForce;
28 Connection * Connection;
29 DeviceType DeviceType;
30 uint32_t DeviceIndex;
31 Device ** StorageDevices;
33 uint32_t NumberOfStorageDevices;
34 void * PrivateProtocolData;
35 void * PrivateDetectionModeData;
36
45 void ( * Destructor)(Device * self);
46 #endif // !defined(DEVICE_DEVICE_H) || defined(CONTAINS_DEVICE)
47 #if !defined(DEVICE_DEVICE_H) && !defined(CONTAINS_DEVICE)
48 };
49
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif // __cplusplus
54
69 DLLINTERNAL Device * Device_GetInstance (Connection * connection,
70 DeviceType deviceType,
71 uint32_t deviceIndex);
72
89 DLLINTERNAL Device * Device_New (Connection * connection,
90 DeviceType deviceType,
91 uint32_t deviceIndex,
92 size_t size);
93
94 #ifdef __cplusplus
95 }
96 #endif // __cplusplus
97
98 // Violating Barr 4.2d but we have an exception.
99 #if defined(USE_PLATFORMDEVICE) || !defined(COMPILING_ZFORCE_SDK)
100 #include <PlatformDevice.h>
101 #endif // defined(USE_PLATFORMDEVICE) || !defined(COMPILING_ZFORCE_SDK)
102
103 #if defined(USE_SENSORDEVICE) || !defined(COMPILING_ZFORCE_SDK)
104 #include <SensorDevice.h>
105 #endif // defined(USE_SENSORDEVICE) || !defined(COMPILING_ZFORCE_SDK)
106
107 #if defined(USE_COREDEVICE) || !defined(COMPILING_ZFORCE_SDK)
108 #include <CoreDevice.h>
109 #endif // defined(USE_COREDEVICE) || !defined(COMPILING_ZFORCE_SDK)
110
111 #if defined(USE_AIRDEVICE) || !defined(COMPILING_ZFORCE_SDK)
112 #include <AirDevice.h>
113 #endif // defined(USE_AIRDEVICE) || !defined(COMPILING_ZFORCE_SDK)
114
115 #if defined(USE_PLUSDEVICE) || !defined(COMPILING_ZFORCE_SDK)
116 #include <PlusDevice.h>
117 #endif // defined(USE_PLUSDEVICE) || !defined(COMPILING_ZFORCE_SDK)
118
119 #if defined(USE_LIGHTINGDEVICE) || !defined(COMPILING_ZFORCE_SDK)
120 #include <LightingDevice.h>
121 #endif // defined(USE_LIGHTINGDEVICE) || !defined(COMPILING_ZFORCE_SDK)
122
123 #define DEVICE_DEVICE_H
124 #endif // !defined(DEVICE_DEVICE_H) && !defined(CONTAINS_DEVICE)
125
Device::Connection
Connection * Connection
The Connection this Device is part of.
Definition: Device.h:28
Device::PrivateProtocolData
void * PrivateProtocolData
Private Protocol Data.
Definition: Device.h:34
Device::DeviceType
DeviceType DeviceType
Which type of Device this is.
Definition: Device.h:29
Connection
The main Connection struct.
Definition: Connection.h:64
Device::zForce
zForce * zForce
Pointer to zForce.
Definition: Device.h:27
LightingDevice.h
Handles requests to the LightingDevice.
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.
Device::DeviceIndex
uint32_t DeviceIndex
Definition: Device.h:30
Device::PrivateDetectionModeData
void * PrivateDetectionModeData
Private DetectionMode Data.
Definition: Device.h:35
CoreDevice.h
Handles requests to the CoreDevice.
Device::StorageDevices
Device ** StorageDevices
Future: List of Storage Devices. Will change type during implementation.
Definition: Device.h:32
PlusDevice.h
Handles requests to the PlusDevice.
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.
AirDevice.h
Handles requests to the AirDevice.
SensorDevice.h
Handles requests to the SensorDevice, a meta device.
zForce
Main struct.
Definition: zForce.h:28
Device::NumberOfStorageDevices
uint32_t NumberOfStorageDevices
Number of Storage Devices.
Definition: Device.h:33
DeviceType
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:82
PlatformDevice.h
Handles requests to the PlatformDevice.
Device
Brief Device base class.
Definition: Device.h:23
Device::Destructor
void(* Destructor)(Device *self)
Destructor.
Definition: Device.h:45