void EP3_OUT_Callback(void)
{
uint16_t USB_Rx_Cnt;
/* Get the received data buffer and update the counter */
USB_Rx_Cnt = USB_SIL_Read(EP3_OUT, USB_Rx_Buffer);
/* USB data will be immediately processed, this allow next USB traffic being
NAKed till the end of the USART Xfer */
USB_To_USART_Send_Data(USB_Rx_Buffer, USB_Rx_Cnt);
/* Enable the receive of data on EP3 */
SetEPRxValid(ENDP3);
}
继续寻找是谁调用 USB_To_USART_Send_Data(,)函数
原来是void EP3_OUT_Callback(void)调用USB_To_USART_Send_Data(,)函数
uint8_t USB_Rx_Buffer[VIRTUAL_COM_PORT_DATA_SIZE];
USB_SIL_Read()函数把EP3_OUT缓冲区的复制到uint8_t USB_Rx_Buffer数组里面
无9位的数据的啊 !!!
我在本版面,实在是找不到答案啊 !!!!
搜索本版面9位,得到的答案是关于USART的9位
搜索本版面的USB转串口,讨论的是其他的问题
请帮忙拉
|