Function sc_tdc_init_with_config_lines¶
Defined in File scTDC.h
Function Documentation¶
-
int sc_tdc_init_with_config_lines(const struct sc_ConfigLine *confline_array)¶
Initializes the hardware and loads the initial settings taken from array of sc_ConfigLine structures.
The function must be called before any other operation and associates a non-negative integer number (device descriptor) with the device. Device descriptor must be used to identify hardware for any other operation.
Hardware with the same serial number cannot be opened twice. Call sc_tdc_deinit2() to close and deinitialize hardware.
Last structure of the array must contain sc_ConfigLine::section equal NULL.
- Parameters
confline_array – Array of sc_ConfigLine structures which contains configuration needed.
- Returns
int device descriptor or error code if less then zero.