Sun Microsystems S16A Laptop User Manual


 
S16A User’s Guide Input and Output
EDT, Inc. October, 1996 17
s16a_set_dac_control_reg
Description
Write a specified value to the output DAC Control register.
Syntax
int s16a_set_dac_control_reg(S16aDev *s16a_p, int value);
Arguments
s16a_p S16A device handle returned from s16a_open
value Value to write to the DAC Control register.
Return
Returns 0 on success or –1 on failure. Fails if s16a_p does not refer to an output channel. Sets errno on failure.
s16a_set_defaults
Description
Resets the S16A configuration to its default state:
The Xilinx Programming registers are set to S16A_XRESET and then cleared.
The UART Command/Status register and the DAC Output Control register are set to 0.
Gain and offset values are set from /dev/s16a.cfg, which is generated when you run s16acalibrate.
Ring buffer mode is disabled and driver- or library-allocated ring buffers are released.
Syntax
int s16a_set_defaults(S16aDev *s16a_p);
Arguments
s16a_p S16A device handle returned from s16a_open
Return
Return value from ioctl call to driver: 0 on success; –1 on error. If an error occurs, check the errno global
variable for the error number.