IOCTL_ADAPT_RESET_PIPE

CYUSB3

IOCTL_ADAPT_RESET_PIPE

Top Previous Next

Description

 

This command resets an endpoint of the device, clearing any error or stall conditions on that endpoint. Pending data transfers are not cancelled by this command.

 

The address of a single byte is passed as the lpInBuffer parameter to the DeviceIoControl( ) function.

 

A null pointer is passed as the lpOutBuffer parameter.

 

 

Example

 

DWORD dwBytes;

UCHAR Address = 0x82;

 

DeviceIoControl(hDevice, IOCTL_ADAPT_RESET_PIPE,

            &Address, sizeof (Address)

            NULL, 0,

            &dwBytes, NULL);