beautypg.com

Al_getdonebuffptr – Measurement Computing ADLIB WIN User Manual

Page 122

background image

Chapter 40 Buffer Handler Functions

27-2

27.2 AL_GetDoneBuffPtr

Prototype

C\C++

LPBUFFSTRUCT

AL_GetDoneBuffPtr(LHLD

lhld);


Visual Basic for Windows

Not

supported

LHLD lhld

handle of the LDSD


The AL_GetDoneBuffPtr function retrieves a buffer pointer from the LDSD FIFO. Buffers are placed
into the FIFO and are returned by AL_GetDoneBuffPtr as a first done, first returned ordering. See section

6.3 THE BUFFER STRUCTURE

for additional details.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


Returns:
On success LPBUFFSTRUCT points to the current buffer, otherwise LPBUFFSTRUCT is set to NULL
indicating no buffers are available. The LPBUFFSTRUCT is a structure defined in adlib.h that contains a
pointer to the buffer and current status information of the buffer. See the Memory Buffer Allocation
chapter for a complete description of buffer handling concepts and the LPBUFFSTRUCT structure details.

Related Functions:
AL_ClearBufferDoneFlag
AL_GetBufferStatus

Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0, DAC1