Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 136 of 157
Apr 1, 2013
R_usb_cstd_SndMsg
Sends processing requests to the priority table
Format
USB_ER_t R_usb_cstd_SndMsg(uint8_t id, USB_MSG_t *mess)
Argument
id Task ID to send message.
*mess Transmitted message
Return Value
USB_E_OK Message transmission completion
USB_E_ERROR Task ID is not set
Priority of task is not set
Priority table is full (Can’t send request to priority table)
Description
This function transfers the processing request to the priority table.
The function is defined in the R_USB_SND_MSG macro.
Note
1. Please call the sceduler macro that this function is defined in theuser application other than the interrupt
function or the class driver.
2. Specify the start address of the memory buffer in the message to be transmitted.
3. The sample program specifies the start address of the memory block obtained in the R_PGET_BLK macro.