Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 111 of 157
Apr 1, 2013
5.4.2 MGR call-backs
Table 5.6 classcheck
Name Classcheck Call-back function
Call format (*USB_CB_CHECK_t)( USB_UTR_t*, uint16_t **);
USB_UTR_t * Pointer to a USB Transfer Structure Arguments
uint16_t **table table [0] device descriptor
table [1] configuration descriptor
table [2] interface descriptor
table [3] descriptor check result
table [4] hub type
table [5] port number
table [6] communication speed
table [7] device address
Return values - - -
Description
HDCD is notified of descriptor information, etc., and HDCD returns a ready/not ready to
operate result. One of the following check results (table[3]) are returned.
USB_DONE: HDCD ready to operate
USB_ERROR: HDCD not ready to operate.
table[4] : HUB spec for HUB driver
USB_FSHUB:Full-Speed HUB
USB_HSHUBS:Hi-Speed HUB(Single)
USB_HSHUBM:Hi-Speed HUB(Multi)
table[5]:Port number (R8A66597 only)
USB_PORT0:Device connect to port0
USB_PORT1:Device connect to port1
table[6]:Device speed (R8A66597 only)
USB_HSCONNECT:Device is Hi-speed
USB_FSCONNECT:Device is Full-speed
USB_LSCONNECT:Device is Low-speed
Notes
Table 5.7 Other call-backs
Name Other call-back functions
Call format (*USB_CB_INFO_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 The function set to the following memer is called at the registration.
classinit: Executed at MGR startup.
devconfig: Executed when Set_Configuration request issued.
devdetach: Executed when a detach condition is detected.
devsuspend: Executed at transition to suspend state.
devresume: Executed at transition to resume state.
overcurrent: Executed when over current is detected.
Notes Refer to Table 5.9 USB_HCDREG_t structure members