QLIB
The new version of USB drivers under Linux enables a faster but more complex approaching of QUANCOM USB modules. This new approaching is necessary for the process of USBGPIB and the upcomming support of USBAD8DAC2.This comlexity makes a fragmentation in several files and for that the effort of a real library reasonable.
Installation
Beside the known module directory there is also a QLIB directory. In this directory you only need to call
>> make
and create a libqlib.a file.This file is needed in combination with both of the header files qlib.h and errorhandler.h to create programs like our program examples.
Normally you could install it in the common places like /usr/local/include and /usr/local/lib respectivly but qlib.h also needs quancom.h from the module account. At this moment there is still an exact isolation between USB and PCI QLIB under Linux so that we don't recommand it to you.
Particularly if you use QUANCOM USB modules as well as QUANCOM PCI cards.
Application
If you want to apply QLIB commands you need to connect qlib.h to your C-programs on the one hand and you need to link libqlib.a on the other hand. The easiest way is to handle it with a make file as they are used by programming examples.
|
# Makefile for the QUANCOM Linux USB Modules
CC=gcc
CFLAGS=-O2 -g -I../qlib
usbtest: main.c
$(CC) $(CFLAGS) $< ../qlib/libqlib.a -o usbtest
clean:
rm -f *~ *.o usbtest
|
|
Supported QLIB Commands
Following commands are supported by our QLIB for Linux
|