User manual

133
5.1.3 Library usage examples
General CHAPI support library is used by all examples supplied with the product.
Examples source code can be found in chapters (6.1, 6.2).
5.2 Serial I/O CHAPI support library
Note: This library depends on CHAPI.DLL one.
5.2.1 Library files
Serial I/O CHAPI support library consists of:
1) Header file which contains base class (chapi_serial_device_interface) for all CHAPI
serial line controller (also chapi_dhv11.dll, chapi_dlv11.dll) that can work with
CHAPI serial lines based on class chapi_serial_line_interface -
chapi_serial_device_iface.h;
2) Header file which contains base class (chapi_serial_line_interface) for all CHAPI serial
lines (also chapi_serial.dll) that can work with CHAPI serial lines controller based
on class chapi_serial_device_interface - chapi_serial_line_iface.h;
3) Library file to link with in order to create new CHAPI serial lines library release
chapi_serial.lib, debug chapi_seraild.lib;
4) Dynamically linked library, containing all implementation of CHAPI serial lines
release chapi_serial.dll, debug chapi_seriald.dll;
5) Dynamically linked library, containing all implementation of CHAPI DHV11
chapi_dhv11.dll;
6) Dynamically linked library, containing all implementation of CHAPI DLV11
chapi_dl11.dll;
Library source codes aren’t provided.
5.2.2 Library description
The main goal is to describe methods for CHAPI serial line controllers and CHAPI serial
lines, so all CHAPI serial line controllers can work with all CHAPI serial lines.
Definitions of standard CHAPI interface (like read(…), write(…) …) will be skipped.