Sun Microsystems S16A Laptop User Manual


 
Input and Output S16A User’s Guide
14 EDT, Inc. October, 1996
s16a_get_output_bits
Description
Get the output resolution of the S16A. Returns 16 or 20, reflecting the current driver setting for the output
channel.
Syntax
int s16a_get_output_bits(S16aDev *s16a_p);
Arguments
s16a_p S16A device handle returned from s16a_open
Return
Returns 16 or 20 on success; returns –1 if the ioctl driver call fails, and sets errno to indicate the problem.
s16a_open
Description
Opens the specified S16A and sets up the device handle.
Syntax
S16aDev *s16a_open(int unit, int channel, int output);
Arguments
unit specifies the device unit number
channel specifies the analog I/O channel number: 0 or 1
output specifies the direction: 1 means the output subdevice; 0 means the input subdevice
Return
A handle of type (S16aDev *), or NULL if error. If an error occurs, check the errno global variable for the
error number.