Input and Output

S16A User’s Guide

s16a_done

Description

Returns the cumulative count of completed buffer transfers.

Syntax

int s16a_done_count(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open.

Return

The number of completed buffer transfers. Completed buffers are numbered consecutively starting with 0 when the S16A is opened. (Thus, the allocated buffer number is the transferred buffer number modulo the number of allocated buffers.)

s16a_get_dac_control_reg

Description

Get current state of the output DAC control register. To check for an error, clear the errno global variable before calling this function, then check it for non-zero after the function returns.

Syntax

u_int s16a_get_dac_control_reg(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open

Return

Integer containing current state of the DAC Control register. The global variable errno is set on error.

12

EDT, Inc. October, 1996

Page 16
Image 16
Sun Microsystems S16A manual S16adone, S16agetdaccontrolreg