STM32f105自动生成的USB 主机, 如何进行数据的接收?
/**
* @brief The func
tion informs user that data have been sent
* @param pdev: Selected device
* @retval None
*/
__weak void USBH_CDC_ReceiveCallback(USBH_HandleTypeDef *phost)
{
printf("USBH_CDC_ReceiveCallbackn");
CDC_HandleTypeDef *CDC_Handle = (CDC_HandleTypeDef*) phost->pActiveClass->pData;
printf("%sn",CDC_Handle->pTxData);
}
这个函数为什么没有用?