
3.2 Initialization
int ndigo250m count devices(int *error code, char **error message)
Return the number of boards that are supported by this driver in the system.
int ndigo250m get default init parameters(ndigo init parameters *init)
Get a set of default parameters to feed into ndigo init(). This must always be used to initialize
the ndigo init parameter structure.
ndigo device *ndigo250m init(ndigo init parameters *params, int *error code, char **er-
ror message)
Open and initialize the Ndigo250M-14 board with the given index. With error code and er-
ror message the user must provide pointers where to buffers where error information should be
written by the driver. The buffer for the error message must by at least 80 chars long.
Params is a structure of type ndigo init parameters that must be completely initialized.
int ndigo close(ndigo device *device)
Finalize the driver for this device.
3.2.1 Structure ndigo init parameters
int version
Must be set to NDIGO API VERSION
int card index
The index in the list of Ndigo250M-14 boards that should be initialized. There might be multiple
boards in the system that are handled by this driver as reported by ndigo count devices. This
index selects one of them. Boards are enumerated depending on the PCIe slot. The lower the
bus number and the lower the slot number the lower the card index.
int board id
This 8 bit number is filled into each packet created by the board and is useful if data streams of
multiple boards will be merged. If only Ndigo250M-14 cards are used this number can be set to
the card index. If boards of different types that use a compatible data format are used in a system
each board should get a unique id. Can be changed with int ndigo set board id(ndigo device
*device, int board id).
ndigo bool t use external clock
Use 10MHz clock supplied by IPC flat band cable. Must be set for all slaves when synchronizing
multiple boards.
ndigo bool t drive external clock
Drive internal 10MHz clock of this board to IPC flat band cable. Must be set for master when
synchronizing multiple boards.
cronologic GmbH & Co. KG 26 Ndigo250M-14 User Guide
Comentarios a estos manuales