The digital output functions with DMA transferring make it possible to transfer the digital data with high speed. In this mode, the data directly flows from the memory to the device port without the interference of the CPU. The driver will monitor the progress of the transfer and send the proper event to notify the user of the current transfer status.
1. Event Notification (Recommended)
Before performing the operation, set the properties by DRV_DeviceSetProperty, such as data width, start/ stop type, clock source, buffer size etc. The DRV_EnableEvent function enables the notification event. Start the digital output operation by DRV_FDOStart. The driver will send a proper event to notify the status of the transfer progress. Use DRV_CheckEvent to check the signaled event and handle your own task. Stop the operation with the DRV_FDOStop function at any time.

2. No Event Notification
Before performing the operation, set the properties by DRV_DeviceSetProperty, such as data width, start/ stop type, clock source, buffer size etc. The DRV_FDOStart function starts the digital output operation with DMA transferring. Use the DRV_FDOCheck function to check the status of the transfer and stop the operation with the DRV_FDOStop function when the transfer is completed or at any other time. In this type of transfer, event notification of the transfer status will not be received. The only way to monitor the transfer is to call the DRV_FDOCheck function to check the status of the transfer progress.
