Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 80 of 157
Apr 1, 2013
<USB_CTL_H_GET_DEVICE_INFO>
int16_t usb_smp_fn;
void usb_apl_task(USB_UTR_t *ptr)
{
USB_CTL_PARAMETER_t smp_parameter;
:
smp_parameter.device_information.tbl = &smp_tbl;
/* Getting USB device information */
control(usb_smp_fn, USB_CTL_H_GET_DEVICE_INFO, (void)&smp_parameter);
:
}
<USB_CTL_RD_NOTIFY_SET>
<USB_CTL_GET_RD_STATE>
<USB_CTL_RD_LENGTH_GET>
Please refer to example of "read" function.
<USB_CTL_WR_NOTIFY_SET>
<USB_CTL_GET_WR_STATE>
<USB_CTL_WR_LENGTH_GET>
Please refer to example of "write" function.