Echelon LonTal Stack User Manual
Page 61
LonTalk Stack Developer’s Guide
49
Function
Syntax
Description
SciMipRead
LdvRetVal SciMipRead (
LDV_Message *pMsg,
int size);
De-queues one uplink
message or local network
interface command if there
is one available.
size. Indicates the size of
the structure of pMsg.
This function returns one of
the following vlaues:
LDV_OK. Successful.
LDV_NO_MSG_AVAIL.
No messages are available.
LDV_NOT_OPEN. The
driver is not open
LDV_INVALID_BUF_LEN
The value of size is too
small for the message.
SciMipWrite
LdvRetVal SciMipWrite(
LDV_Message *pMsg);
Queues a message or local
network interface command
to the driver.
Returns one of the following
values:
LDV_NOT_OPEN. The
driver is not open.
LDV_INVALID_BUF_LEN
The length embedded in the
structure at pMsg is too
large for the driver buffers.
LDV_NO_BUFF_AVAIL.
The driver buffers are full.
LDV_OK if successful.
Messages that are queued
have not necessarily been
delivered to the MIP yet.
The queue depth is
currently set to 4.