cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

ricardoquesada
New Contributor

Hi,

I have a PSoC 5LP using USBFS-UART component.

I tested the example that comes with PSoC Creator and works great.

But instead of polling for data by calling USBUART_DataIsReady(), I'd like to get notified when data is ready to be read (either via an interrupt or callback).

Is that possible?

Many thanks!

 

PS: I tried with USBUART_DISPATCH_CDC_CLASS_CDC_READ_REQUESTS_CALLBACK / USBUART_DISPATCH_CDC_CLASS_CDC_WRITE_REQUESTS_CALLBACK but it seems they are meant for something else.

0 Likes
1 Solution
RodolfoGL
Employee

You can use the endpoint interrupt callback to notify your application. The interrupt handlers are implemented in the USBUART_episr.c. Pick the one linked to the USBUART output endpoint (EP3).

View solution in original post

1 Reply
RodolfoGL
Employee

You can use the endpoint interrupt callback to notify your application. The interrupt handlers are implemented in the USBUART_episr.c. Pick the one linked to the USBUART output endpoint (EP3).

View solution in original post