OkoLib
library for accessing Okolab devices
Error codes

Typedefs

typedef enum _oko_res_type oko_res_type
 Specifies the return values.
 

Enumerations

enum  _oko_res_type {
  OKO_OK = 0,
  OKO_ERR_UNINIT = -1,
  OKO_ERR_ARG = -2,
  OKO_ERR_FAIL = -3,
  OKO_ERR_NOTSUPP = -4,
  OKO_ERR_CLOSED = -5,
  OKO_ERR_UNCONN = -6,
  OKO_ERR_PORT_BUSY = -7,
  OKO_ERR_PORT_CFG = -8,
  OKO_ERR_PORT_NOTVALID = -9,
  OKO_ERR_DB_OPEN = -10,
  OKO_ERR_PROP_NOTFOUND = -11,
  OKO_ERR_DEV_NOTFOUND = -12,
  OKO_ERR_COMM = -13,
  OKO_ERR_ENUM_NOTFOUND = -14,
  OKO_ERR_MODULE_NOTFOUND = -15,
  OKO_ERR_DEV_SLAVE = -16,
  OKO_ERR_DEV_NOTRUNNING = -17,
  OKO_ERR_MEMORY = -18,
  OKO_ERR_TIMEOUT = -19,
  OKO_ERR_UNDEF = -999
}
 Specifies the return values. More...
 

Detailed Description

Enumeration Type Documentation

Specifies the return values.

Enumerator
OKO_OK 

Operation completed successfully.

OKO_ERR_UNINIT 

Library not initialized yet.

OKO_ERR_ARG 

Invalid arguments were passed to the function.

OKO_ERR_FAIL 

A system error occurred while executing the operation.

OKO_ERR_NOTSUPP 

The requested operation is not supported by this system or device.

OKO_ERR_CLOSED 

The specified device is not opened.

OKO_ERR_UNCONN 

The specified device is not connected.

OKO_ERR_PORT_BUSY 

Serial port busy.

OKO_ERR_PORT_CFG 

Port configuration failed.

OKO_ERR_PORT_NOTVALID 

Port not valid.

OKO_ERR_DB_OPEN 

Database error on open.

OKO_ERR_PROP_NOTFOUND 

Property not found.

OKO_ERR_DEV_NOTFOUND 

Device not found.

OKO_ERR_COMM 

Communication error.

OKO_ERR_ENUM_NOTFOUND 

Enum of the Property not found.

OKO_ERR_MODULE_NOTFOUND 

Module specified not found.

OKO_ERR_DEV_SLAVE 

Slave device.

OKO_ERR_DEV_NOTRUNNING 

Device not running.

OKO_ERR_MEMORY 

Memory allocation failed.

OKO_ERR_TIMEOUT 

Timeout error.

OKO_ERR_UNDEF 

Undefined error.