- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
PSoC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).