S16A User’s Guide | Input and Output |
s16a_wait_for_next_buffer
Description
Blocks until the next buffer is returned from the driver. Returns immediately if a buffer is already complete. The completed buffers are numbered consecutively, so the first call to s16a_wait_for_next_buffer returns the address of buffer 0, the next will be 1, and so on.
Syntax
void *s16a_wait_next_buffer(S16aDev *s16a_p);
Arguments
s16a_p | S16A device handle returned from s16a_open |
Return
Address of completed buffer on success; NULL on error. If an error occurs, check the errno global variable for more information.
s16a_write
Description
Perform a write on the S16A. The UNIX 2 GB file offset bug is avoided during large amounts of input or
output; that is, writing past 231 does not fail. This call is not multibuffering, and no transfer is active when it completes.
Syntax
int s16a_write(S16aDev *s16a_p, void *buf, int size);
Arguments |
|
s16a_p | S16A device handle returned from s16a_open |
buf | address of buffer to write from |
size | size of write in bytes |
Return
The return value from write; errno is set by write on error.
EDT, Inc. October, 1996 | 21 |