Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Control Transfer Clear Status
public static Task ClearStatusAsync(this IUsbDevice usbDevice)
=> usbDevice.PerformControlTransferAsync(new SetupPacket
(
requestType: new UsbDeviceRequestType(
RequestDirection.In,
RequestType.Class,
RequestRecipient.Interface),
request: DFU_CLEARSTATUS,
length: 0
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment