Neonode zForce(TM) SDK
|
#include <PlatformDevice.h>
#include <SensorDevice.h>
#include <CoreDevice.h>
#include <AirDevice.h>
#include <PlusDevice.h>
#include <LightingDevice.h>
Go to the source code of this file.
Classes | |
struct | Device |
Brief Device base class. More... | |
Functions | |
DLLINTERNAL Device * | Device_GetInstance (Connection *connection, DeviceType deviceType, uint32_t deviceIndex) |
Internal call to get a new Device with the specified Type and Index. More... | |
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. More... | |
Base Device class.
A Device is used to make requests to the unit. Subclasses of this implement that actual functionality.
DLLINTERNAL Device* Device_GetInstance | ( | Connection * | connection, |
DeviceType | deviceType, | ||
uint32_t | deviceIndex | ||
) |
Internal call to get a new Device with the specified Type and Index.
On failure, errno is set.
connection | The Connection the Device is associated with. |
deviceType | Which DeviceType to create. |
deviceIndex | Which Device Index to set. |
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.
On failure, errno is set.
connection | The Connection the Device is associated with. |
deviceType | Which DeviceType to create. |
deviceIndex | Which Device Index to set. |
size | If this is used as a base class for another class, set size to non-zero. |