S16A User’s Guide

Input and Output

s16a_cancel

Description

Stops any transfers currently in progress, resets the ring buffer pointers to restart on the current buffer.

Syntax

int s16a_cancel(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open.

Return

0 on success, –1 on failure. Sets errno on failure.

s16a_cancel_current

Description

Stops the current transfers, resets the ring buffer pointers to the next buffer.

Syntax

int s16a_cancel(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open.

Return

0 on success, –1 on failure. Sets errno on failure.

s16a_check_next_buffer

Description

Checks whether the next buffer is complete.

Syntax

int s16a_check_next_buffer(S16aDev *s16a_p);

Arguments

s16a_p

S16A device handle returned from s16a_open.

Return

0 on success, –1 on failure. Sets errno on failure.

EDT, Inc. October, 1996

9

Page 13
Image 13
Sun Microsystems S16A manual S16acancelcurrent, S16achecknextbuffer