...
usbd_audio_os.h / usbd_audio_os.c
Prototype
| Code Block |
|---|
|
void USBD_Audio_OS_RingBufQLockAcquire (CPU_INT08U as_if_nbr,
CPU_INT16U timeout_ms,
USBD_ERR *p_err); |
Arguments
as_if_settings_ix
...
- 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 |
|---|
| borderWidth | 0 |
|---|
| title | Table - 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
|
|