This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
USB数据传输采用USBCDC类(虚拟串口)进行传输,上位机可以直接通过串口与下位机通讯,也能使用USB协议与下位机通讯 USB通讯采用端点传输方式,具体参数可在 "usbd_cdc.h"中进行修改 USB通过“usbd_cdc_if.c”中的static int8_t CDC_Receive_HS(uint8_t* Buf, uint32_t *Len)函数接受数据;通过uint8_t CDC_Transmit_HS(uint8_t* Buf, uint16_t Len)发送数据 当上位机向单片机发送/接受数据时,单片机进入“void OTG_HS_IRQHandler(void)”中断执行HAL_PCD_IRQHandler(&hpcd_USB_OTG_HS) 函数 **单片机向上位机发送的数据不能是64的整数倍 参考资料:http://t.csdn.cn/4oRNV