This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

EP 8 IN enabled check when writing a USB audio device (microphone)

Hi,

When I write a very simple USB audio device that just pass a sinuous wave created in a timer that runs at a 16KHz freq - how can I tell "someone" on the host listens to it and that I should keep passing data to the app_usbd_audio_class_tx_start() function ?

Apparently when the host doesnt have a recording application running app_usbd_audio_class_tx_start() detects that the EP isnt enabled and returns NRF_ERROR_INVALID_STATE.

How can I do that in a higher level without failing ?

Remark #1:
The device can be in configured state and still fail passing data to the host because the EP isnt enabled.

Parents Reply Children
No Data
Related