TsctlAIOPuts16Desc

From embeddedTS Manuals

This call is only valid if AIO is a DAC. Otherwise a negative error value will be returned.

If the specified buffer was successfully passed to Readys, then this call will block until that conversion is completed. Otherwise, the conversion will be initiated immediately such that each enabled channel will be activated in turn, looping around until the specified number of samples have been converted from the buffer for each channel, with the function blocking until all conversions are completed or the interrupt trigger occurs. In either case, a positive return code will be returned indicating the number of samples actually taken.

The number of elements in the passed Array determines how many samples will be written. Each sample will be written to a subsequent channel, wrapping around at the end. It is not required that the length be an exact multiple of the number of channels.