Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
usb_audio_ops Struct Reference

Audio callbacks used to interact with audio devices by user App. More...

#include <usb_audio.h>

Data Fields

usb_audio_data_request_cb_t data_request_cb
 
usb_audio_data_completion_cb_t data_written_cb
 
usb_audio_data_completion_cb_t data_received_cb
 
usb_audio_feature_updated_cb_t feature_update_cb
 

Detailed Description

Audio callbacks used to interact with audio devices by user App.

usb_audio_ops structure contains all relevant callbacks to interact with USB Audio devices. Each of this callbacks is optional and may be left NULL. This will not break the stack but could make USB Audio device useless. Depending on the device some of those callbacks are necessary to make USB device work as expected sending/receiving data. For more information refer to callback documentation above.

Field Documentation

◆ data_received_cb

usb_audio_data_completion_cb_t usb_audio_ops::data_received_cb

◆ data_request_cb

usb_audio_data_request_cb_t usb_audio_ops::data_request_cb

◆ data_written_cb

usb_audio_data_completion_cb_t usb_audio_ops::data_written_cb

◆ feature_update_cb

usb_audio_feature_updated_cb_t usb_audio_ops::feature_update_cb

The documentation for this struct was generated from the following file: