ADLINK PCI-9810 User Manual
Page 64

52
Function Reference
buff (DOS)
Start address of the memory buffer that stores the A/
D data. The buffer size must be larger than the
number of A/D conversions. This memory should be
in double-word alignment. The resolution of A/D data
is 12-bit for PCI-9812 and 10-bit for PCI-9810. Refer
to section 5.6 for the A/D data format.
The buffer format is:
Each 16-bit data:
D11 D10 D9 ... D1 D0 b3 b2 b1 b0
where:
D11, D10, ... , D0: A/D converted data (9812) or
D11, D10, ... , D2: A/D converted data (9810).
b2, b1, b0: Digital input data from channel DI2, DI1,
DI0.
b3: Trigger detection flag. Valid values:
memID (Win-95)
Memory ID of the allocated system DMA memory. In
Windows 95, before calling W_9812_AD_DMA_Start,
W_9812_Alloc_DMA_Mem must be called to allocate
a contiguous DMA memory.
W_9812_Alloc_DMA_Mem returns a memory ID for
identifying the allocated DMA memory and the linear
address of the DMA memory to access the data. The
format of the A/D data is the same as the DOS buffer
(buff).
count
Number of A/D conversion.
DATA 1
DATA 2
DATA 3
DATA 4
............
DATA
N-1
DATA N
16-bit
16-bit
16-bit
16-bit
16-bit
16-bit
16-bit
0
No trigger is detected.
1
Trigger is detected.