Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 138 of 157
Apr 1, 2013
R_usb_cstd_iSndMsg
Sends processing requests from interrupts to the priority table.
Format
USB_ER_t R_usb_cstd_iSndMsg(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_ISND_MSG macro.
Note
1. Please call the sceduler macro that this function is defined in the interrupt function.
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.