S16A User’s Guide Input and Output
EDT, Inc. October, 1996 19
s16a_set_output_bits
Description
Set the output resolution of the S16A to 16 or 20 bits.
Syntax
int s16a_set_output_bits(S16aDev *s16a_p, int value);
Arguments
s16a_p S16A device handle returned from s16a_open
value Either 16 or 20, indicating the operational mode of the output DAC.
Return
Returns 0 on success or –1 on failure. Fails if s16a_p does not refer to an output channel, or if value is
anything but 16 or 20. Sets errno on failure.
s16a_start_buffers
Description
Releases the specified number of buffers to the driver for transfer.
Syntax
int s16a_start_buffers(S16aDev *s16a_p, int bufnum);
Arguments
s16a_p S16A device handle returned from s16a_open
bufnum Number of buffers to release to the driver for transfer. An argument of 0 causes the driver
to perform continuous transfers.
Return
0 on success; –1 on error. If an error occurs, check the errno global variable for the error number.