I’m implementing a KL25 USB device based on the following example:
Freescale_BM_USB_Stack_v5.0\Src\example\device\audio\generator
The example waits for enumeration, then calls USB_Class_Audio_Send_Data() in a loop. This appears to work fine unless the stack is not ready for the next packet (this depends on the host latency). I cannot find a callback or a method to poll that tells me it is safe to call USB_Class_Audio_Send_Data(). I think I can poll the OWN bit in the BDT, is there an easier way?