Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Wait for an AudioStreaming interface to become available and acquire its lock.

Files

usbd_audio_os.h / usbd_audio_os.c

Prototype

Arguments

as_if_nbr

AudioStreaming interface index.

timeout_ms

Lock wait timeout in milliseconds.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_OS_TIMEOUT
USBD_ERR_OS_ABORT
USBD_ERR_OS_FAIL                  

Returned Value

None.

Callers

Audio Class.

Implementation Guidelines

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

p_err argument should be assigned as described in following table.

  • No labels