Function sc_tdc_set_start_sim_params

Function Documentation

int sc_tdc_set_start_sim_params(const int dd, const unsigned start_count, const unsigned start_period, const unsigned start_delay, const unsigned train_count, const unsigned train_period, const unsigned start_mask)

Set parameters for pulse train simulation generated in the TDC.

Parameters
  • dd – Device Descriptor

  • start_count – number of start pulses; if this number is zero, do not simulate any pulses, regardless of other parameters

  • start_period – period of start pulses in multiples of 12.5 ns

  • start_delay – delay of first start pulse to train pulse in multiples of 12.5 ns

  • train_count – number of train pulses (“train triggers”); if this number is zero, do not generate train pulses, but do generate sub pulses whenever an external train pulse is detected

  • train_period – period of train pulses in multiples of 12.5 ns

  • start_mask – start pulse selection bitmask (a repeated concatenation of this bitmask applies to start pulses with indices larger than 32)

Returns

0 on success, or negative error code