Echelon OpenLDV User Manual

Page 54

Advertising
background image

46

Using the OpenLDV API

Return Code

Numeric

Value

Description

LDV_DEVICE_ERR

4

This code is returned if a

function fails to execute as a

result of a failure to

communicate with the

network driver. Call

ldv_close() to close the

network interface and release

the resources assigned to the

network driver. Then, re-open

the network interface with one

of the open functions.

LDV_INVALID_DEVICE_ID

5

This code is returned if you

specify an invalid device name

when opening a L

ON

W

ORKS

interface device with one of

the open functions, or an

invalid handle when using any

of the other OpenLDV

functions. Ensure that the id

input parameter for the name

of the device is valid.

LDV_NO_MSG_AVAIL

6

No message is available to be

read. This code is returned if

you call ldv_read(), and there

are no uplink messages from

the network interface that

have not yet been read. You

can use the

ldv_register_event()

function to receive notification

events when messages are

available to be read from the

network interface.

LDV_NO_BUFF_AVAIL

7

No buffer is available. This

code is returned if you call

ldv_write(), and there is no

available buffer on the local

network interface to which to

write the message. Wait until

a buffer becomes available and

try writing the message again.

Advertising