Hi,
We are on FW development for USB HID keyboard with LPC11U68 as the core. We need to detect when PC has been shutdown or suspended/resumed.
For suspend/resume USB_Suspend_Event, USB_Resume_Event and USB_WakeUpCfg ROM API callbacks are used and everything works fine with it.
On shutdown case, when PC keeps USB ports powered, USB_Suspend_Event and instant USB_Resume_Event callbacks called.
DCON bit of DEVCMDSTAT register remains 1 and DSUS is 0. Other bits are not changed during runtime except DEV_ADDR.
So I can not see the way to detect if the host is online or not. How can it be done, please help
Best Regards, Maksym Naumchuk