Neonode zForce(TM) SDK
Classes | Functions
PlatformDevice.h File Reference

Handles requests to the PlatformDevice. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PlatformDevice
 Struct representing a PlatformDevice. More...
 

Functions

DLLINTERNAL PlatformDevicePlatformDevice_New (Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
 Internal call used to create a new PlatformDevice. More...
 

Detailed Description

Handles requests to the PlatformDevice.

PlatformDevice contains system-level requests, like getting the MCU Unique Identifier, etc.

Function Documentation

DLLINTERNAL PlatformDevice* PlatformDevice_New ( Connection connection,
DeviceType  deviceType,
uint32_t  deviceIndex,
size_t  size 
)

Internal call used to create a new PlatformDevice.

On failure, errno is set.

Parameters
connectionThe Connection the Device is associated with.
deviceTypeWhich DeviceType to create.
deviceIndexWhich Device Index to set.
sizeIf this is used as a base class for another class, set size to non-zero.
Returns
A pointer to the new Device.