DRV_FAOLoad

INT32S DRV_FAOLoad(
   PTR_T DeviceHandle,
   PT_FAOLoad *lpFAOLoad );

Purpose

Transfers the data from the user's buffer to the FAO (Fast Analog Output) output buffer without affecting the output process. When the FAO output buffer is empty or “ready” (checked with the DRV_FAOCheck), then the data must be loaded (DRV_FAOLoad) in order to avoid buffer underrun.

Parameters

Some parameters, such as data output buffer(ActiveBuf), buffer that stores binary data (DataBuffer), start point of buffer (start) and count of data to copy (count), are stored in the PT_FAOLoad structure pointed by the lpFAOLoad. Every loading must be with half buffer size, high half buffer or low half buffer.

Name Direction Range Description
DeviceHandle input default The pointer retrieved from the DRV_DeviceOpen which specifies the target device.
lpFAOLoad input / output default The pointer to indicate the user-prepared structure PT_FAOLoad that stores buffer that is outputting data (INT16U ActiveBuf), buffer that stores binary data (INT16U *DataBuffer), start point of buffer (INT16U start) and count of data to copy (INT32U count).

Return

   1. 0 Successful.
   2. InvalidDriverHandle The DriverHandle is NULL.
   3. InvalidInputParam The input value is incorrect. Maybe the input count exceeds the range.