DRV_ClearFlag

INT32S DRV_ClearFlag( 
   PTR_T DeviceHandle, 
   INT32U EventType );

Purpose

On the device indicated by the DeviceHandle, it clears the event flag of specified EventType code.

Parameters

Name Direction Range Description
DeviceHandle input default The pointer retrieved from the DRV_DeviceOpen which specifies the target device.
EventType input default The event type options are:
ADS_EVT_DI_OVERRUN : FDI overrrun and buffer ready flags.
ADS_EVT_DO_UNDERRUN: FDO underrun and buffer transferred flags.
ADS_EVT_DI_LOBUFREADY: FDI low half buffer ready flag.
ADS_EVT_DI_HIBUFREADY: FDI high half buffer ready flag.
ADS_EVT_DO_LOBUFTRANS: FDO low half buffer transferred flag.
ADS_EVT_DO_HIBUFTRANS: FDO high half buffer transferred flag.
ADS_EVT_AI_OVERRUN : FAI overrrun and buffer ready flags.
ADS_EVT_AO_UNDERRUN: FAO underrun and buffer transferred flags.

Return

   1. SUCCESS Successful.
   2. InvalidDriverHandle The DriverHandle is NULL.
   3. InvalidEventType The EventType codes are incorrect.