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_RingBufQLockAcquire (CPU_INT08U   as_if_nbr,
                                         CPU_INT16U   timeout_ms,
                                         USBD_ERR    *p_err);


Arguments

as_if_settings_ix

...

  1. Typical implementation will consist in pending on a mutex or binary semaphore.

    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 result

Error code to assign

No error

USBD_ERR_NONE

Pend timeout

USBD_ERR_OS_TIMEOUT

Pend aborted

USBD_ERR_OS_ABORT

Pend failed for any other reason

USBD_ERR_OS_FAIL