Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 50 of 157
Apr 1, 2013
4.2.4 PCD Call-back functions
Table 4-4 R_usb_pstd_TransferStart call-back
Call-back Data Transfer Request call-back function
Call format (*USB_CB_t)(USB_UTR_t *);
Arguments USB_UTR_t * Submitted USB_UTR_t pointer
Return values
⎯
⎯ ⎯
Description
This function is executed at data transfer* end. (A transfer end condition at the end of a
data transfer, of the size specified by the transfer application, when a short packet is
received.).
The remaining transmit/receive data length and the error count are updated.
Notes Bulk/Interrupt data transfer
Table 4-5 Call-back of control transfer
Call-back Call-back function of control transfer without standard request
Call format (*USB_CB_TRN_t)( USB_UTR_t *, USB_REQUEST_t *, uint16_t);
USB_UTR_t * Pointer to a USB Transfer Structure
USB_REQUEST_
t *
Information of request
Arguments
uint16_t Information of stage
Return values
⎯
⎯ ⎯
Description This call-back is called by USB interrupt in control transfer without standard request.
Notes
Table 4-6 Other call-backs
Call-back Other call-back Functions
Call format (*USB_CB_INFO_t)( USB_UTR_t *,uint16_t, uint16_t)
USB_UTR_t * Pointer to a USB Transfer Structure
uint16_t NOARGUMENT: Not used
Arguments
uint16_t NOARGUMENT: Not used
Return values ⎯ ⎯ ⎯
Description
usb_pstd_Remote: Executed at end of remote wakeup processing.
usb_pstd_ClearSeqbit: Executed when the sequence toggle bit is cleared.
R_usb_pstd_SetStall: Executed when the sequence toggle bit is set to the stall state.
R_usb_pstd_TransferEnd: Executed at data transfer end.
Notes