Software components, Building an application with sx12 library, Functions reference – Sensoray 512 QNX User Manual
Page 9

9
5. Software Components
The software contains the following files:
Filename
Function
sx12.h
Header: hardware-depended constants
sx12f.h
Header: function prototypes
sx12lib.o
Library functions
sx12io.o
I/O functions
sx12.ini
List of the base addresses to look for a board
x12demo.c
The demo application
makefile
The rule to build the demo
5.1. Installation Procedure
The software does not require a special installation procedure.
6. Building an Application with SX12 Library
Link your application together with sx12io.o and sx12lib.o, including sx12.h and sx12f.h.
Please refer to the sample source code for an example of building an application with SX12 Library.
7. Functions Reference
The SX12 Library is designed to provide the application developer with full control over the frame
grabber. All special data types used by the Library are defined in sx12.h. The sample application
illustrates the use of most of the functions and allows building a custom application within minutes.
7.1. Library Functions
X12_init
int X12_init(void);
Parameters
None.
Return values
Returns number of cards on success. Returns -1 if any errors were detected.
Notes