Technical Document #87

Technical Document #87
How do I setup the transfer buffer to send a null data packet through the control pipe?

You should set the pBuffer parameter of the WDU_Transfer() function to NULL and set the dwBufferSize parameter to 0.

In version 5.2.2 and earlier, set the pBuffer field of the WD_USB_TRANSFER structure, used in the call to WD_UsbTransfer(), to NULL, and set the dwBytes field of this structure to 0.