Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 22 of 157
Apr 1, 2013
close
End USB device class communication
Format
int16_t close (int16_t fileno)
Arguments
fileno File number
Return Value
Error code
Description
This function ends the USB device class communication specified by the file number.
If the USB device class communication ends successfully, the function sends (0) as the return value. If the
communication fails, it returns (-1).
Note
1. Call this function from the user application.
Example
int16_t usb_smp_fn;
void usb_apl_task()
{
err = close(usb_smp_fn);
}