HP (Hewlett-Packard) 9112 Series Network Card User Manual


 
C/C++ Library
65
u Argument :
buf_size: Bytes to allocate. Please be careful, the unit of this
argument is BYTE, not SAMPLE.
memID: If the memory allocation is successful, driver returns the ID
of that memory in this argument. Use this memory ID in
W_9112_AD_DMA_Start or W_9112_ContDmaStart function call.
linearAddr: The linear address of the allocated DMA memory. You can
use this linear address as a pointer in C/C++ to access the DMA data.
u Return Code :
ERR_NoError
ERR_AllocDMAMemFailed
5.30 _9112_Free_DMA_Mem
u Description
Deallocate a system DMA memory under Windows 95 environment. This
function is only available in Windows 95 version.
u Syntax
Visual C++(Windows-95)
int W_9112_Free_DMA_Mem (HANDLE memID)
Visual Basic (Windows-95)
W_9112_Free_DMA_Mem (ByVal memID As Long) As Long
u Argument :
memID: The memory ID of the system DMA memory to deallocate.
u Return Code :
ERR_NoError
5.32 _9112_Get_Sample
u Description
For the language without pointer support such as Visual Basic,
programmer can use this function to access the index-th data in DMA
buffer. This function is only available in Windows 95 version.
u Syntax
Visual C++(Windows-95)
int W_9112_Get_Sample (unsigned long linearAddr, unsigned index,
unsigned short *ai_data)
Visual Basic (Windows-95)
W_9112_Get_Sample (ByVal linearAddr As Long, ByVal idx As Long,
ai_data As Integer) As Long