Instruction manual
AMPDIO DRIVERS
Page 238
IOCTL_WAIT_INTEVENT_2
Waits for interrupt event 2 to occur. (Version
4.02 onwards.)
IOCTL_WAIT_INTEVENT_3
Waits for interrupt event 3 to occur. (Version
4.02 onwards.)
IOCTL_WAIT_INTEVENT_4
Waits for interrupt event 4 to occur. (Version
4.02 onwards.)
IOCTL_WAIT_INTEVENT_5
Waits for interrupt event 5 to occur. (Version
4.02 onwards.)
IOCTL_WAIT_INTEVENT_READ_DIRECT
Wait for an interrupt event to occur using “direct
I/O” method for buffer transfer. (Version 4.43
onwards.)
IOCTL_WAIT_INTEVENT_WRITE_DIRECT
Wait for a “write” interrupt event to occur using
“direct I/O” method for buffer transfer. (Version
4.43 onwards.)
IOCTL_GET_IRQEVENT_ERROR
Determine if overflow or under-run condition has
occurred during interrupt processing. (Version
4.23 onwards.)
IOCTL_FLUSH_IRQEVENT
Flushes (discards) interrupt user data in the
driver including data in FIFO. (Version 4.35
onwards.)
IOCTL_EXPEDITE_READ_IRQEVENT
Causes current or following interrupt data buffer
for “read” interrupt event to be completed as
soon as possible. (Version 5.02 onwards.)
IOCTL_GET_IRQEVENT_AVAILABLE_-
TO_READ
Determines how much interrupt data is available
for a “read” interrupt event. (Version 5.02
onwards.)
7.3.1 Interrupt Data Transfer Types Supported
The IOCTL_ENABLE_IRQEVENT IOCTL call is used to enable an IRQ event. It allows the user to
configure the data to fetch during the interrupt service routine. The following data types are
supported:
ISR_NODATA — reads zeroes
ISR_READ_16COUNT — reads a timer counter channel
ISR_READ_16COUNTSTAT — reads a TC channel's status and count (Version 4.40 onwards)
ISR_READ_32COUNT — reads two chained counters
ISR_READ_32COUNTSTAT — reads two TC channels' status and counts (Version 4.40 onwards)
ISR_READ_PPIABC — reads data from all 3 PPI ports
ISR_READ_PPIC — reads data from PPI port C (Version 2.00 onwards)
ISR_PC27 — reads PC27 ADC port (Version 2.01 onwards)
ISR_READ_DATA8 — reads data from 1 DIO port (Version 3.00 onwards)
ISR_READ_DATA16 — reads data from 2 DIO ports (Version 3.00 onwards)
ISR_READ_ADCS — reads ADC channels (Version 4.00 onwards)
ISR_READ_ADCSNOFIFO — reads ADC channels (Version 4.02 onwards)
ISR_READ_ADCSFIFO — reads ADC channels (Version 4.10 onwards)
ISR_READ_ADCSASAP — reads ADC channels (Version 4.40 onwards)
ISR_READ_2PPIABC — reads data from 6 PPI ports on 2 PPI chips (Version 4.35 onwards)
ISR_READ_3PPIABC — reads data from 9 PPI ports on 3 PPI chips (Version 4.35 onwards)
ISR_WRITE_DATA8 — writes data to 1 DIO port (Version 3.00 onwards)