Function sc_tdc_set_complete_callback2

Function Documentation

int sc_tdc_set_complete_callback2(const int, void *owner, void (*cb)(void*, int))

Set a callback to get notifications about end of measurements.

See also

SC_TDC_INFO_MEAS_COMPLETE, SC_TDC_INFO_USER_INTERRUPT, SC_TDC_INFO_BUFFER_FULL, SC_TDC_INFO_HW_IDLE (defined in scTDC_error_codes.h) that the library passes as the second argument into the cb function provided by the user.

Parameters
  • owner – a private pointer that is replicated in the first argument of the callback

  • cb – a callback function receiving the private pointer and a reason code.

Returns

0 on success, else negative error code.