Download USB Basic Mini Firmware
Transcript
Renesas USB MCU
USB Basic Mini Firmware
R_usb_pstd_DeviceInformation
Obtain USB device state information
Format
void
R_usb_pstd_DeviceInformation (uint16_t *table)
Argument
*table
Table address where the obtained information is stored
Return Value
-
-
Description
Obtain USB device information. The following information is stored to the address specified by the argument
(*table).
[0]: USB state (VBSTS and DVSQ field values in the INTSTS0 register)
[1]: Configuration number (wValue of SET_CONFIGURATION request)
[2]: Number of interfaces (g_usb_PcdDriver.configtbl[USB_CON_NUM_INTERFACE])
[3]: Remote wakeup flag (Enable: USB_YES, disable: USB_NO)
Notes
1. Prepare an area of size 4*word in the argument *table.
Example
void usb_smp_task(void)
{
uint16_t res[4];
:
R_usb_pstd_DeviceInformation(res);
:
}
R01AN0326EJ0213 Rev. 2.13
Mar 16, 2015
Page 40 of 107