7 #if defined _WIN32 || defined __CYGWIN__
9 #define SCTDCDLL_PUBLIC __declspec(dllexport)
10 #define WIN32_LEAN_AND_MEAN
12 #define SCTDCDLL_PUBLIC __declspec(dllimport)
16 #define SCTDCDLL_PUBLIC __attribute__ ((visibility("default")))
18 #define SCTDCDLL_PUBLIC
20 #include <sys/types.h>
22 #error platform is not supported
57 const unsigned event_len_bytes);
119 SCTDCDLL_PUBLIC
int sc_tdc_set_complete_callback2
120 (
const int,
void *owner,
void (*cb)(
void *,
int));
160 SCTDCDLL_PUBLIC
int sc_twi_write2
162 const unsigned char address,
163 const unsigned char *data,
167 SCTDCDLL_PUBLIC
int sc_twi_read2
169 const unsigned char address,
174 SCTDCDLL_PUBLIC
int sc_twi_set_epot2
175 (
const int,
unsigned int epot,
unsigned int value_number,
unsigned char value);
202 (
const int dev_desc,
const enum sc_pipe_type_t type,
const void *params);
210 SCTDCDLL_PUBLIC
int sc_pipe_close2(
const int dev_desc,
const int pipe_id);
231 (
const int dev_desc,
const int pipe_id,
void **buffer,
unsigned int timeout);
234 sc_tdc_set_flim_scanner2
236 unsigned short pixel_interval,
237 unsigned short pixel_count,
238 unsigned short line_count,
239 unsigned int line_delay_interval,
240 unsigned int multiline_count,
244 sc_tdc_set_flim_scanner2ex
246 unsigned short pixel_interval,
247 unsigned short pixel_count,
248 unsigned short line_count,
249 unsigned int line_delay_interval,
250 unsigned int multiline_count,
258 const unsigned event_len_bytes);
260 SCTDCDLL_PUBLIC
int sc_tdc_set_corrections2(
const int,
const int,
const int *,
const unsigned char *);
261 SCTDCDLL_PUBLIC
int sc_tdc_set_common_shift2(
const int,
const int);
262 SCTDCDLL_PUBLIC
int sc_tdc_set_modulo2(
const int,
const unsigned int);
263 SCTDCDLL_PUBLIC
int sc_tdc_get_modulo2(
const int,
unsigned int *);
273 (
const int dd,
size_t internal_pipe_size,
294 (
const int dd,
void *buffer,
size_t buffer_size_bytes,
unsigned timeout);
305 (
const int dd,
const char *key,
char *buf,
size_t buf_size,
const char *def);
324 (
const int dd,
int params_num,
void *params);
327 SCTDCDLL_PUBLIC
int sc_dld_set_hardware_binning
328 (
const int dd,
const struct sc3du_t *binning);
399 (
const int dd,
const char *blob);
410 (
const int dd,
char *str,
size_t str_len,
size_t *str_len_ret);
412 SCTDCDLL_PUBLIC
int sc_tdc_zero_master_reset_counter
418 #endif // __cplusplus
420 #define ERRSTRLEN 256
sc_pipe_type_t
Pipe type.
Definition: scTDC_types.h:187
SCTDCDLL_PUBLIC 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...
SCTDCDLL_PUBLIC int sc_tdc_set_blob(const int dd, const char *blob)
Set blob algorithm.
SCTDCDLL_PUBLIC void sc_tdc_config_get_library_version(unsigned[3])
Get scTDC version.
SCTDCDLL_PUBLIC int sc_tdc_get_format2(const int dev_desc, struct sc_tdc_format *format)
Get data format of the tdc events.
SCTDCDLL_PUBLIC int sc_tdc_deinit2(const int dev_desc)
Deinitialize the hardware.
SCTDCDLL_PUBLIC int sc_tdc_is_event(const enum sc_event_type_index type, const void *event, const unsigned event_len_bytes)
Check type of event data.
SCTDCDLL_PUBLIC int sc_tdc_get_device_properties(const int dd, int params_num, void *params)
Get Device Properties.
SCTDCDLL_PUBLIC int sc_pipe_close2(const int dev_desc, const int pipe_id)
Close data pipe.
SCTDCDLL_PUBLIC int sc_tdc_get_cmos_and_smoothers_params(const int dd, struct sc_CmosSmootherParameters *params)
Get cmos and smoother parameters.
SCTDCDLL_PUBLIC int sc_tdc_get_blob_parameters(const int dd, struct sc_BlobParameters *params)
Get blob parameters.
SCTDCDLL_PUBLIC int sc_tdc_get_blob(const int dd, char *str, size_t str_len, size_t *str_len_ret)
Get default blob algorithm.
SCTDCDLL_PUBLIC void sc_get_err_msg(int err_code, char *err_msg)
Gives an error description in a text form.
SCTDCDLL_PUBLIC int sc_tdc_interrupt2(const int dev_desc)
Stop measure.
SCTDCDLL_PUBLIC int sc_tdc_set_cmos_and_smoothers_params(const int dd, const struct sc_CmosSmootherParameters *params)
Set cmos and smoother parameters.
SCTDCDLL_PUBLIC int sc_tdc_pipe_close2(const int dd)
Close data pipe for tdc events.
sc_event_type_index
Used to find out type of event.
Definition: scTDC_types.h:573
SCTDCDLL_PUBLIC int sc_tdc_init_inifile(const char *ini_filename)
Initializes the hardware and loads the initial settings reading it from ini file. ...
Definition: scTDC_types.h:604
SCTDCDLL_PUBLIC int sc_tdc_get_binsize2(const int dev_desc, double *binsize_ns)
Get binsize in nanoseconds.
SCTDCDLL_PUBLIC int sc_tdc_set_iteration_number2(const int dd, int itnum)
Set Iteration Number.
Blob parameters structure.
Definition: scTDC_types.h:681
SCTDCDLL_PUBLIC int sc_pipe_read2(const int dev_desc, const int pipe_id, void **buffer, unsigned int timeout)
Read data from pipe.
SCTDCDLL_PUBLIC int sc_tdc_start_measure2(const int dev_desc, const int ms)
Start measure.
SCTDCDLL_PUBLIC int sc_pipe_open2(const int dev_desc, const enum sc_pipe_type_t type, const void *params)
Open data pipe.
Unsigned 3d point.
Definition: scTDC_types.h:72
SCTDCDLL_PUBLIC int sc_tdc_get_status2(const int dev_desc, int *status)
Get running status.
Cmos and Smoother parameters structure.
Definition: scTDC_types.h:653
SCTDCDLL_PUBLIC ssize_t sc_tdc_pipe_read2(const int dd, void *buffer, size_t buffer_size_bytes, unsigned timeout)
Read tdc events from the pipe.
Definition: scTDC_types.h:610
SCTDCDLL_PUBLIC int sc_tdc_pipe_open2(const int dd, size_t internal_pipe_size, const struct sc_PipeCbf *pipe_warning, const struct sc_PipeCbf *pipe_alert)
Open data pipe for tdc events.
SCTDCDLL_PUBLIC int sc_tdc_set_blob_parameters(const int dd, const struct sc_BlobParameters *params)
Set blob parameters.
SCTDCDLL_PUBLIC int sc_tdc_config_get_key(const int dd, const char *key, char *buf, size_t buf_size, const char *def)
Get configuration data.