4understanding the mvi56-ldm api – ProSoft Technology MVI56E-LDM User Manual
Page 39

ControlLogix Platform ♦ "C" Programmable
Understanding the MVI56-LDM API
Linux Application Development Module
Developer's Manual
ProSoft Technology, Inc.
Page 33 of 264
March 12, 2014
4
Understanding the MVI56-LDM API
In This Chapter
API Library - MVI56E ............................................................................. 33
MVI56E-LDM Development Tools ......................................................... 35
CIP API Functions ................................................................................. 36
Backplane Device Driver ....................................................................... 36
The MVI56E LDM CPI API Suite allows software developers to access the
ControlLogix backplane without requiring detailed knowledge of the module’s
hardware design. The MVI56E-LDM API Suite consists of three distinct
components; the backplane device driver, the backplane interface engine, and
the API library.
Applications for the MVI56E-LDM module may be developed using industry-
standard Linux programming tools and the CPI API library.
This section provides general information pertaining to application development
for the MVI56E-LDM module.
4.1
API Library - MVI56E
The API provides a library of function calls. The library supports any
programming language that is compatible with the 'C' calling convention. The
API library is a dynamic library that must be linked with the application to create
the executable program>
Note: The following compiler versions are tested and known to be compatible with the MVI56E
module API:
CNU C/C++ V4.4.4 for ARM9
4.1.1 Header File
A header file is provided along with the API library. This header file contains API
function declarations, data structure definitions, and constant definitions. The
header file is in standard 'C' format. Header files for the CIP API are
ocxbpapi.h
and
ocxtagdb.h
.
4.1.2 Sample Code
Sample applications are provided to illustrate the usage of the API functions. Full
source for the sample application is included, along with make files to build the
sample programs.