Functions – Echelon LonTal Stack User Manual

Page 60

Advertising
background image

48

Creating a LonTalk Stack Serial MIP Driver

Structure

Description

sensed.
UlDiscarded. Number of tossed

uplinks.

Functions

Function

Syntax

Description

SciMipOpen

LdvRetVal SciMipOpen(
WORD iComPort,
DWORD baudrate,
HANDLE hNotifier);

Opens the serial interface
driver.
iComPort. The index to

the serial port.

baudrate. The serial port

baud rate,
hNotifier. A handle to an
event that will be set by the

driver whenever received
messages are available. The

driver never closes this

handle.

If the driver is already open,

then the SciMipClose()
function is called first.
This function returns

LDV_OK or
LDV_DEVICE_ERR (if

there was a failure with the

serial port or thread
creation).

SciMipClose

LdvRetVal
SciMipClose(void);

Closes the serial interface

driver by closing the serial

port and deleting any
threads created during

SciMipOpen().
Returns LDV_OK or
LDV_NOT_OPEN (if the

driver was not open).

Advertising