Download USB Basic Mini Firmware
Transcript
Renesas USB MCU USB Basic Mini Firmware *g_usb_PcdDriver.statediagram Callback when detecting the USB state transition Format void (*g_usb_PcdDriver.statediagram)((uint16_t)data1, (uint16_t)device_state); Argument data1 state. Normally not used, configuration number for Set_Configurationdevice_state USB Return Value - - Description USB state transition is notified to the UPL using this callback function. Resume detection (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_STS_RESUME) ; State transition interrupt detection (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_STS_DEFAULT); (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_STS_ADDRESS); (*g_usb_PcdDriver.statediagram)(g_usb_PcdConfigNum, USB_STS_CONFIGURED); (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_STS_SUSPEND); Detach detection (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_STS_DETACH); Attach detection (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_STS_ATTACH); USB data line is set to pull up (*g_usb_PcdDriver.statediagram)(USB_NO_ARG, USB_PORTENABLE); Notes 1. Communication speed of a device is not notified when a reset is detected. 2. PCD does not issue this callback when the Set_Configuration request is received and the structure number isnot changed 3. The ADDRESS state is notified when the Set_Configuration request is received and the structure number is 0. R01AN0326EJ0213 Rev. 2.13 Mar 16, 2015 Page 47 of 107