12 #ifndef DEVICE_DEVICE_H
13 #define DEVICE_DEVICE_H 1
15 #ifndef ZFORCECOMMON_H
16 #error Please include "zForceCommon.h" before this file.
91 #if defined(USE_PLATFORMDEVICE) || !defined(COMPILING_ZFORCE_SDK)
95 #if defined(USE_SENSORDEVICE) || !defined(COMPILING_ZFORCE_SDK)
99 #if defined(USE_COREDEVICE) || !defined(COMPILING_ZFORCE_SDK)
103 #if defined(USE_AIRDEVICE) || !defined(COMPILING_ZFORCE_SDK)
107 #if defined(USE_PLUSDEVICE) || !defined(COMPILING_ZFORCE_SDK)
111 #if defined(USE_LIGHTINGDEVICE) || !defined(COMPILING_ZFORCE_SDK)
Handles requests to the AirDevice.
Handles requests to the CoreDevice.
DLLINTERNAL Device * Device_GetInstance(Connection *connection, DeviceType deviceType, uint32_t deviceIndex)
Internal call to get a new Device with the specified Type and Index.
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.
Handles requests to the LightingDevice.
Handles requests to the PlusDevice.
Handles requests to the SensorDevice, a meta device.
The main Connection struct.
Definition: Connection.h:66
Device base class.
Definition: Device.h:26
Device ** StorageDevices
Future: List of Storage Devices. Will change type during implementation.
Definition: Device.h:31
DeviceType DeviceType
Which type of Device this is.
Definition: Device.h:29
Connection * Connection
The Connection this Device is part of.
Definition: Device.h:28
zForce * zForce
Pointer to zForce.
Definition: Device.h:27
void(* Destructor)(Device *self)
Destructor.
Definition: Device.h:43
void * PrivateProtocolData
Private Protocol Data.
Definition: Device.h:33
uint32_t NumberOfStorageDevices
Number of Storage Devices.
Definition: Device.h:32
uint32_t DeviceIndex
Which Device Index this device has.
Definition: Device.h:30
Main struct.
Definition: zForce.h:29
DeviceType
Enum describing the different device types that exists.
Definition: zForceTypes.h:90