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

Get a ready record buffer from codec.

Files

usbd_audio_drv_<codec-name>.h / usbd_audio_drv_<codec-name>.c

Prototype

Arguments

p_audio_drv

Pointer to audio driver structure.

terminal_id_link

Terminal ID associated to this stream.

p_buf

Pointer to record buffer.

p_buf_len

Pointer to buffer length in bytes.

p_err

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

USBD_ERR_NONE 
USBD_ERR_RX

Returned Value

None.

...Pointer to a ready record buffer, if NO error(s) occurred.

Null pointer, otherwise. 

Callers

Audio Class.

Implementation guidelines

This listing shows an example usage of this function.

  • No labels