Instruction manual

AMPDIO DRIVERS
Page 189
format of a TCUserCBCallback as defined
below.
wParam unsigned integer: user-supplied value passed
to the user’s callback function.
Chip short: determines interrupt source. The
interrupt source number from 0 to 5 multiplied
by 4 (0, 4, 8, 12, 16, 20). For timer/counter
interrupt or first interrupt line on a PPI chip it is
the address offset of the chip. For second
interrupt line on a PPI chip it is the address
offset of the PPI chip plus 4. Corresponds to bit
positions in interrupt enable register if the card
has one, otherwise use the address offset of
the interrupting chip. The following pre-defined
constants may be used:
X1 = 0 PPIXC0 = 0
X2 = 4 PPIXC3 = 4
Y1 = 8 PPIYC0 = 8
Y2 = 12 PPIYC3 = 12
Z1 = 16 PPIZC0 = 16
Z2 = 20 PPIZC3 = 20
PPIX = 0 PPIYC7 = 8
PPIY = 8 EXT0 = 0
PPIZ = 16 ADC0 = 0
ADC2 = 8
DAC2 = 8
DAC4 = 16
SATRIG = 12
SizeReq unsigned long: number of data values in each
buffer.
fContin short: use single buffer if zero, use double
buffering (continuous mode) if non-zero.
ISRDATA short: type of data transfer to be performed on
interrupt. The following pre-defined constants
may be used:
ISR_READ_ADCS = 10
ISR_READ_ADCSNOFIFO = 11
ISR_READ_ADCSFIFO = 12
ISR_READ_ADCSASAP = 15
ISR_WRITE_DACS = 35
ISR_WRITE_DACSNOFIFO = 37
ISR_WRITE_DACSFIFO = 38
Group short: channel group of ADC channels to read
or DAC channels to be written.
ChMask unsigned long: bit-mask of ADC channels to
read or DAC channels to be written; LSB
corresponds to channel 0; MSB corresponds to
channel 32; bit value ‘1’ means the
corresponding channel will be read.