Jump to main content

##

# 2.4.2.1 Abstraction Model

The Audio 2.0 Function Driver offers various services to the USB Audio 2.0 device to communicate with the host by abstracting USB specification details. It must be used along with the USB Device_layer and USB controller to communicate with the USB host. The following figure shows a block diagram of the MPLAB Harmony USB Device Stack Architecture and where the Audio 2.0 Function Driver is placed.

Figure 2-7.USB Device Audio Device Driver

The USB controller driver takes the responsibility of managing the USB peripheral on the device. The USB Device Layer handles the device enumeration, etc. The USB Device Layer forwards all Audio-specific control transfers to the Audio 2.0 Function Driver. The Audio 2.0 Function Driver interprets the control transfers and requests application's intervention through event handlers and a well-defined set of API. The application must respond to the Audio events either in or out of the event handler. Some of these events are related to Audio 2.0 Device Class specific control transfers. The application must complete these control transfers within the timing constraints defined by USB.