VL-MPEe-U2 Reference Manual
16
Application Programming Interface (API)
About VersaAPI
The VersaLogic Application Programming Interface (VersaAPI) is a shared library of API calls
for reading and controlling on-board devices on certain VersaLogic products. In Microsoft
Windows they are presented as a dynamically linked library interface plus associated header file,
and under Linux as a shared library with an associated header file.
to download the VersaAPI package.
Open and Close Calls
The library interface must be opened by every application that wishes to make calls into the API
and also must be closed by that same application when exiting.
VSL_Open();
Opens the VersaAPI library.
Syntax:
VL_OSALIB_API unsigned long VSL_Open();
Inputs:
none
Outputs:
unsigned long
This call returns 0 if the open was a success and nonzero if no useable drivers
were found by the DLL. For the VL-MPEe-U2, the useable driver is the Exar
serial port driver.
VSL_Close();
Closes the VersaAPI library.
Syntax:
VL_OSALIB_API void VSL_Close();
Inputs:
none
Outputs:
none
4