Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

usbd_audio_os.h / usbd_audio_os.c

Prototype

Code Block
languagecpp
void  USBD_Audio_OS_AS_IF_LockAcquire (CPU_INT08U   as_if_nbr,
                                       CPU_INT16U   timeout_ms,
                                       USBD_ERR    *p_err);


Arguments

as_if_nbr

AudioStreaming interface index.

...

p_err argument should be assigned as described in following table.

Anchor
Table - Error Code Assignment for Pending on a Lock
Table - Error Code Assignment for Pending on a Lock

Panel
borderWidth0
titleTable - Error Code Assignment for Pending on a Lock


Operation resultError code to assign
No errorUSBD_ERR_NONE
Pend timeoutUSBD_ERR_OS_TIMEOUT
Pend abortedUSBD_ERR_OS_ABORT
Pend failed for any other reasonUSBD_ERR_OS_FAIL