3 Driver Programming API
The API is a DLL with C linkage. There exists also a .Net wrapper.
The functions provided by the DLL are declared in
xTDC4 interface.h
.
3.1 Constants
#define
xTDC4 CHANNEL COUNT 4
The number of analog input channels.
#define
xTDC4 TIGER COUNT 5
The number of timing generators.
#define
xTDC4 TRIGGER COUNT 16
The number of triggers. Two per analog input, one per digital input plus some specials.
3.2 Initialization
int
xtdc4 close(
xtdc4 device
*device)
Finalize the driver for this device.
int
xtdc4 count devices(
int
*error code
,
char
**error message)
Return the number of boards that are supported by this driver in the system.
int
xtdc4 get default init parameters(
xtdc4 init parameters
*init)
Sets up the standard parameters. Gets a set of default parameters for
xtdc4 init()
. This must
always be used to initialize the
xtdc4 init parameter()
structure.
xtdc4 device
*xtdc4 init(
xtdc4 init parameters
*params
,
int
*error code
,
char
**error message)
Open and initialize the XTDC4 board with the given index. With
error code
and
error message
the user must provide pointers where to buffers where error information should be written by
the driver.
Params is a structure of type
xtdc4 init parameters
that must be completely initialized.
3.2.1 Structure xtdc4 init parameters
int
version
The version number. Must be set to
XTDC4 API VERSION
int
card index
The index in the list of XTDC4 boards that should be initialized.
There might be multiple boards in the system that are handled by this driver as reported by
9
Содержание xTDC4
Страница 2: ......
Страница 3: ......
Страница 7: ......
Страница 12: ...Figure 2 6 The xTDC4 Carry Chain TDC calibration tool cronologic GmbH Co KG 7 xTDC4 User Guide...
Страница 13: ...cronologic GmbH Co KG 8 xTDC4 User Guide...
Страница 25: ...cronologic GmbH Co KG 20 xTDC4 User Guide...