What is the way to suspend the device having winusb as a functional driver?
I am using WinUsb_SetPowerPolicy () to set the powerpolicy and to suspend the device, but I am not getting any success.
Below is code:
ULONG Delay = 10000;
if (WinUsb_SetPowerPolicy(WinusbHandle, SUSPEND_DELAY, sizeof(Delay), &Delay))
{
OutputDebugString(TEXT(Device put in suspend mode"));
}
WinUsb_SetPowerPolicy is returing success and I am getting the print. But when I check the device after 10secs, it is not in suspended state, the device still shows in D0 state.