Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 142 of 157
Apr 1, 2013
R_usb_cstd_RelBlk
Releases an area used for storing a request information table
Formant
USB_ER_t R_usb_cstd_RelBlk(uint8_t id, USB_UTR_t* blk)
Argument
id Task ID of releasing area .
*blk Pointer to released area
Return Value
USB_E_OK The area is released
USB_E_ERROR Task is not set
The area is not released
Description
This function releases an area for storing a message.
The function is defined in the R_USB_REL_BLK macro.
Note
Please call the sceduler macro that this function is defined from the user application or the class drive.
Example
void usb_smp_task()
{
USB_ER_t err;
USB_UTR_t *mess;
/* Releasing the area that the message is stored */
err = R_USB_REL_BLK(USB_SMP_MPL,(USB_MH_t)mess);
if(err != USB_OK)
{
/* Error processing */
}
}