Sun Microsystems S16A s16agetoutputbits, s16aopen, Description, Syntax, Arguments, s16ap, Return

Models: S16A

1 46
Download 46 pages 17.09 Kb
Page 18
Image 18

Input and Output

S16A User’s Guide

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.

14

EDT, Inc. October, 1996

Page 18
Image 18
Sun Microsystems S16A manual s16agetoutputbits, s16aopen, Description, Syntax, Arguments, s16ap, Return, unit, channel