When the PC turn on or off?
Posted: Fri Oct 30, 2009 11:18 pm
hi
I want to know that When the PC turn on or off (hid-data sampel)
i am using this macro
i changed the input blinkLED function for accept any setup control transfer data
but i don't know which field of usbRequest_t and value means that the PC turn on or off.
thank you
I want to know that When the PC turn on or off (hid-data sampel)
i am using this macro
Code: Select all
#define USB_RX_USER_HOOK(data, len) if(usbRxToken == (uchar)USBPID_SETUP) blinkLED(data, len);
--------------------------------------------
void blinkLED(uchar *data, uchar len)
{
usbRequest_t *rq = (void *)data;
ledRedOff();
}
i changed the input blinkLED function for accept any setup control transfer data
but i don't know which field of usbRequest_t and value means that the PC turn on or off.
thank you