uint8_t Setup0_Process(void);uint8_t Post0_Process(void);uint8_t Out0_Process(void);uint8_t In0_Process(void);RESULT Standard_SetEndPointFeature(void);RESULT Standard_SetDeviceFeature(void);uint8_t *Standard_GetConfiguration(uint16_t Length);RESULT Standard_SetConfiguration(void);uint8_t *Standard_GetInterface(uint16_t Length);RESULT Standard_SetInterface(void);uint8_t *Standard_GetDescriptorData(uint16_t Length, PONE_DESCRIPTOR pDesc);uint8_t *Standard_GetStatus(uint16_t Length);RESULT Standard_ClearFeature(void);void SetDeviceAddress(uint8_t);void NOP_Process(void);
/******************************************************************************** Function Name : USB_Init* Description : USB系统初始化* Input : None.* Output : None.* Return : None.*******************************************************************************/void USB_Init(void){ pInformation = &Device_Info; //注册设备信息结构体 pInformation->ControlState = 2; //控制状态为IN_DATA pProperty = &Device_Property; //注册设备的常用一些函数结构体 pUser_Standard_Requests = &User_Standard_Requests; /* Initialize devices one by one */ pProperty->Init(); //注册初始化函数}