BOOL VDDSetDMA(hVdd, iChannel, fDMA, Buffer)
IN HANDLE hVdd;
IN WORD iChannel;
IN WORD fDMA;
IN PVDD_DMA_INFO Buffer;
VDDSetDMA resets the state of the virtual DMA controller after a DMA operation using VDDQueryDMA.
Parameters
hVdd
Identifies the VDD.
iChannel
Specifies the DMA Channel to set.
fDMA
Provides bitmask indicating what must be set:
VDD_DMA_ADDR
VDD_DMA_COUNT
VDD_DMA_PAGE
VDD_DMA_STATUS
VDD_DMA_ALL (All of the above)
Buffer
Specifies the buffer location of the DMA data.
Return Value
VDDSetDMA returns TRUE if successful. If the function fails then FALSE is returned. The error logged is ERROR_INVALID_ADDRESS to identify an invalid channel.
See Also
VDDRequestDMA, VDDQueryDMA