PT_EnableEvent

typedef struct tagPT_EnableEvent
{
    INT32U EventType;
    INT16U Enabled;
    INT16U Count;
} PT_EnableEvent, * LPT_EnableEvent; 

PT_EnableEvent is used in function DRV_EnableEvent.

Member Description

Name Direction Range Description
EventType input Depends on the hardware The type of signaled event.
If the Enabled is not NULL, then the corresponding event will occur. If the Enabled is NULL, no event will occur.
Enabled input 0, 1 Enables or disables event.
0- Disables event
1- Enables event
Count input Depends on the hardware The number of interrupts to signal an event.
If the user is operating the function in the AI interrupt mode, then the Count can be set in order to determine the interrupt count after which an interrupt event will occur. This value is calculated with the following formula:
     Count = IntrCount * N
The IntrCount is the parameter of the DRV_FAIIntStart and DRV_FAIIntScanStart. It indicates the sampling count after which an interrupt occurs; N is an integer that is larger than 0.
If the user is operating the function in AI DMA mode, an interrupt will occur only when FIFO is half full. Therefore, the count must be a multiple of half the FIFO size.
If the user is operating the function in DI interrupt mode, then the count can be set to above zero and an integer, in order to determine the data count after which an interrupt will occur.
If the user operates the function in other modes, the count can be set to 1.