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.