
USB Basic Firmware <Short Sheet>
R01AN0495EJ0100 Rev.1.00 Page 15 of 32
Apr 15, 2011
(2) Register the PDCD
The structure used to register information in PDCD is described below. The call-back function is executed when the
device state changes, etc.
The sample application is described in the R_usb_pstd_SmplRegistration function in r_usb_PSMPL_apl.c.
typedef struct {
uint16_t **pipetbl; /* Pipe Define Table address */
uint8_t *devicetbl; /* Device descriptor address */
uint8_t *qualitbl; /* Qualifier descriptor address */
uint8_t **configtbl; /* Configuration descriptor address */
uint8_t **othertbl; /* Other speed descriptor address */
uint8_t **stringtbl; /* String descriptor address */
USBC_CB_INFO_t classinit; /* Driver init */
USBC_CB_INFO_t devdefault; /* Device default */
USBC_CB_INFO_t devconfig; /* Device configuered */
USBC_CB_INFO_t devdetach; /* Device detach */
USBC_CB_INFO_t devsuspend; /* Device suspend */
USBC_CB_INFO_t devresume; /* Device resume */
USBC_CB_INFO_t interface ; /* Interface changed */
USBC_CB_TRN_t ctrltrans; /* Control Transfer */
}USBC_PCDREG_t;
Comentários a estes Manuais