hello
i am using the CDC class functions provided with keil MDK5.
i am asking that is there any manner to know if data is available to read in the virtual comport ( like an event).
thanks
thanks for the response, but the problem is how can i know when data is received because i am using CMSIS RTOS.
is there any event sent by USB_CDC TASK when data are availlable in receive buffer.
Event is not set but function that you implement in your code with name USBD_CDC0_ACM_DataReceived will be called when new data was received
So you define function
void USBD_CDC0_ACM_DataReceived (uint32_t len) { // Something was received }
hello Milorad
thanks for the information.
i have tested it and it works fine.
thanks again