USBD_Audio_OS_PlaybackReqPost

USBD_Audio_OS_PlaybackReqPost

Description

Post a request to the playback's task queue.

Files

usbd_audio_os.h / usbd_audio_os.c

Prototype

void USBD_Audio_OS_PlaybackReqPost (void *p_msg, USBD_ERR *p_err);

 

Arguments

p_msg

Pointer to the message which is a playback event.

p_err

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

USBD_ERR_NONE

USBD_ERR_OS_FAIL

Returned Value

None.

Callers

Audio Class.

Implementation guidelines

  1. A call to this function should post an event into the queue associated to the playback task. 

  2. In case of errors, USBD_ERR_OS_FAIL should be returned. Otherwise, USBD_ERR_NONE should be used.