In the example code that I have, an application polls a buffer until it contains a value which it expects to receive from the Endpoint side.
The application is running as a FreeRTOS task. How can it receive an interrupt/message that the data has arrived?