ProSoft Technology MVI69E-LDM User Manual

Page 69

Advertising
background image

MVI69E-LDM ♦ "C" Programmable

Contents

Linux Application Development Module

Developer's Manual

ProSoft Technology, Inc.

Page 69 of 130

August 21, 2014

MVI69_OpenNB

Syntax

int MVI69_OpenNB(MVI69HANDLE *handle);

Parameters

Handle

pointer to variable of type MVI69HANDLE

Description

MVI69_OpenNB

acquires access to the API and sets

Handle

to a unique ID that the application

uses in subsequent functions. This function must be called before any of the other API
functions can be used.

The purpose of this function is to provide access to certain API functions even if the API is
already in use by another program. This function does not provide access to the backplane;
however, it does provide access to the following functions.

MVI69_GetModuleInfo
MVI69_GetSerialConfig
MVI69_SetSerialConfig
MVI69_GetSetupJumper
MVI69_SetLED
MVI69_GetVersionInfo

IMPORTANT: Once the API has been opened,

MVI69_Close

should always be called before exiting the

application.

Return Value

MVI69_SUCCESS

API was opened successfully

MVI69_ERR_REOPEN

API is already open

MVI69_ERR_NODEVICE

Backplane driver could not be accessed.

Note:

MVI69_ERR_NODEVICE

is returned if the backplane device driver is not loaded.


Example:

MVI69Handle Handle;
if ( MVI69_OpenNB(&handle)!=MVI69_SUCCESS) {
printf ("Open failed!\n");
} else {
printf ("Open succeeded\n");
}

See Also
MVI69_Open

MVI69_Close

Advertising