Enum ZIResult_enum#

enum ZIResult_enum#

Defines return value for all ziAPI functions. Divided into 3 regions: info, warning and error.

Values:

enumerator ZI_INFO_BASE = 0x0000#
enumerator ZI_INFO_SUCCESS = 0x0000#

Success (no error)

enumerator ZI_INFO_MAX#
enumerator ZI_WARNING_BASE = 0x4000#
enumerator ZI_WARNING_GENERAL = 0x4000#

Warning (general);.

enumerator ZI_WARNING_NOTFOUND = 0x4003#

Value or Node not found.

enumerator ZI_WARNING_INVALID_KEYWORD = 0x4005#

Unknown keyword.

enumerator ZI_WARNING_MAX#
enumerator ZI_ERROR_BASE = 0x8000#
enumerator ZI_ERROR_GENERAL = 0x8000#

Error (general)

enumerator ZI_ERROR_MALLOC = 0x8002#

Memory allocation failed.

enumerator ZI_ERROR_CONNECTION = 0x800c#

Connection invalid.

enumerator ZI_ERROR_TIMEOUT = 0x800d#

Command timed out.

enumerator ZI_ERROR_COMMAND = 0x800e#

Command internally failed.

enumerator ZI_ERROR_SERVER_INTERNAL = 0x800f#

Command failed in server.

enumerator ZI_ERROR_LENGTH = 0x8010#

Provided Buffer length is too small.

enumerator ZI_ERROR_FILE = 0x8011#

Can’t open file or read from it.

enumerator ZI_ERROR_DUPLICATE = 0x8012#

There is already a similar entry.

enumerator ZI_ERROR_READONLY = 0x8013#

Attempt to set a read-only node.

enumerator ZI_ERROR_DEVICE_NOT_VISIBLE = 0x8014#

Device is not visible to the server.

enumerator ZI_ERROR_DEVICE_IN_USE = 0x8015#

Device is already connected by a different server.

enumerator ZI_ERROR_DEVICE_INTERFACE = 0x8016#

Device does currently not support the specified interface.

enumerator ZI_ERROR_DEVICE_CONNECTION_TIMEOUT = 0x8017#

Device connection timeout.

enumerator ZI_ERROR_DEVICE_DIFFERENT_INTERFACE = 0x8018#

Device already connected over a different Interface.

enumerator ZI_ERROR_DEVICE_NEEDS_FW_UPGRADE = 0x8019#

Device needs FW upgrade.

enumerator ZI_ERROR_ZIEVENT_DATATYPE_MISMATCH = 0x801A#

Trying to get data from a poll event with wrong target data type.

enumerator ZI_ERROR_DEVICE_NOT_FOUND = 0x801B#

Device not found.

enumerator ZI_ERROR_NOT_SUPPORTED = 0x801C#

Provided arguments are not supported for the command.

enumerator ZI_ERROR_TOO_MANY_CONNECTIONS = 0x801D#

Connection invalid.

enumerator ZI_ERROR_NOT_ON_HF2 = 0x801E#

Command not supported on HF2.

enumerator ZI_ERROR_INVALID_ARGUMENT = 0x801F#
enumerator ZI_ERROR_COM_NACK_BASE = 0x9000#

Errors reported by device.

enumerator ZI_ERROR_COM_NACK_NO_ERROR = 0x9000#
enumerator ZI_ERROR_COM_NACK_INVALID_AP_ADDRESS#
enumerator ZI_ERROR_COM_NACK_INVALID_AP_OFFSET#
enumerator ZI_ERROR_COM_NACK_INVALID_AP_LENGTH#
enumerator ZI_ERROR_COM_NACK_READONLY_AP#
enumerator ZI_ERROR_COM_NACK_NOT_SERVED_AP#
enumerator ZI_ERROR_COM_NACK_NOT_INDEXED_AP#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_LEN#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_FRAME#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_OFFSET#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_EXTRA#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_SEQUENCE#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_IDX_OFFSET#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_TYPE#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_DATA_LEN#
enumerator ZI_ERROR_COM_NACK_INVALID_VECT_EXTRA_LEN#
enumerator ZI_ERROR_COM_NACK_TIMEOUT#
enumerator ZI_ERROR_COM_NACK_RESOURCE_INACTIVE#
enumerator ZI_ERROR_COM_NACK_RESOURCE_BUSY#
enumerator ZI_ERROR_COM_NACK_EXECUTION_ERROR#
enumerator ZI_ERROR_COM_NACK_VECTOR_QUEUE_FULL#
enumerator ZI_ERROR_COM_NACK_INTERNAL_BASE = 0x9100#

SW-generated extension of device errors.

enumerator ZI_ERROR_COM_NACK_INTERNAL_NO_PAYLOAD#
enumerator ZI_ERROR_COM_NACK_INTERNAL_TOO_MANY_PENDING#
enumerator ZI_ERROR_MAX#