USBD_Audio_Add

USBD_Audio_Add

Description

Create a new instance of the audio class.

Files

usbd_audio.h / usbd_audio.c

Prototype

CPU_INT08U USBD_Audio_Add (USBD_AUDIO_DRV_API *p_audio_drv_api, USBD_ERR *p_err);

 

Arguments

p_audio_drv_api

Pointer to Audio Peripheral Driver API.

p_err

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

USBD_ERR_NONE

USBD_ERR_NULL_PTR

USBD_ERR_ALLOC

Returned Value

Class instance number, if NO error(s).

USBD_CLASS_NBR_NONE, otherwise.

Callers

Application.

Notes / Warnings

None.