AnsweredAssumed Answered

USB callback function for STM32-USB-FS-Device library

Question asked by shan on Sep 9, 2013
Latest reply on Sep 10, 2013 by Clive One
Hi all,

I'd like to define a callback function which can be invoked when USB receives something from the host.  Where should I implement this in the STM32-USB-FS-Deivce library?

I know that in Atmel ASL I can do something like this:

void uart_rx_notify(void) 

   while (udi_cdc_is_rx_ready() ) 

But not sure how to implement in the STM32-USB stack.

Hope someone could help, thanks!