USBD_Audio_OS_RecordReqPost

Description

Post a request into the record task's queue.

Files

usbd_audio_os.h / usbd_audio_os.c

Prototype

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


Arguments

p_msg

Pointer to the record message.

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 a request into the queue associated to the record task. The request will be an AudioStreaming interface handle. 
  2. In case of errors, USBD_ERR_OS_FAIL should be returned. Otherwise, USBD_ERR_NONE should be used.