Neonode zForce(TM) SDK

Classes | Functions
CoreDevice.h File Reference

Handles requests to the CoreDevice. More...

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

Go to the source code of this file.

## Classes
struct | CoreDevice
| Struct representing a CoreDevice. More...

## Functions
DLLINTERNAL CoreDevice * | CoreDevice_New (Connection *connection, DeviceType deviceType, uint32_t deviceIndex, size_t size)
| Internal call used to create a new CoreDevice. More...

## Detailed Description

Handles requests to the CoreDevice.

CoreDevice is a specific implementation of a SensorDevice for zForce Core(TM).

Copyright
  COPYRIGHT NOTICE: (c) 2017-2022 Neonode Technologies AB. All rights reserved.

## Function Documentation

## ◆ CoreDevice_New()

DLLINTERNAL CoreDevice* CoreDevice_New | ( | Connection * | connection,
|  | DeviceType | deviceType,
|  | uint32_t | deviceIndex,
|  | size_t | size
| ) |  |

Internal call used to create a new CoreDevice.

Internal call used to create a new CoreDevice.
On failure, errno is set.

- EINVALIDSIZE - Invalid size.

Parameters

  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.

Returns
  A pointer to the new Device.