dio_add_timer_events_c

	status.i4.v = dio_add_timer_events_c(device_indices.i4a.r,
					     num_events.i4a.r,
					     events.i4a.r, errors.i2a.r,
					     num_timers.i4.v)

	This routine will add reference clock events to a 177/377/379/477
	timer channel or a list of timer channels without removing the
	existing events.  This routine also supports non-CAMAC timers which
	have the same ACNET device interface.

	device_indices	device index of timer or array of device indices
	num_events	number of events to add(<= DIO_MAX_TIMER_EVENT) or
			array of number of events to add
			(If a negative value is passed for this argument,
			 all entries will use the absolute value of this
			 argument for the number of events.)
	events		array of events to add (constants are in 'tclk_events')
	errors		array of returned ACNET status values  (Timers which
			already contained all of the requested events will
			return a value of DIO_NO_CHANGE.)
	num_timers	number of timers to load

	This function returns status values as follows:

	OK			success
	DIO_MEMFAIL		dynamic memory allocation failure
	DIO_INVDEV		not a timer device
	DIO_NO_SUCH		invalid timer database entries
	DIO_INVLEN		invalid number of events to add
	negative value		ACNET format error indicating overall failure
	positive value		number of timers in error

	This function requires the following include files:

	diolib_h, tclk_events_h, acnet_errors_h

	Related functions:

	dio_remove_timer_events_c, dio_remove_all_timer_events_c,
	dio_set_timer_ref, dio_get_timer_ref, dio_is_timer_device_c,
	dio_is_timer_reference_c, dio_get_timer_reference_device_c,
	dio_is_timer_pulse_width_device_c, dio_get_timer_pulse_width_device_c,
	dio_build_timer_reference_list_c, dio_get_timer_reference_list,
	dio_cancel_timer_reference_list, dio_timer_max_events_c,
	error_in_list(_c)

	C/C++ usage:

	short	errors[NUM_DEVICES];
	int	status;
	static const int	device_indices[NUM_DEVICES] = {8086, 8080};
	static const int	num_events[NUM_DEVICES] = {1, 1};
	static const int	events[NUM_EVENTS] =
				{EVENT_TEV_GENERIC_RESET, EVENT_TEV_GENERIC_RESET};
	int	num_timers = NUM_DEVICES;

	status = dio_add_timer_events_c(device_indices,num_events,events,
					errors,num_timers);