nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
audio_usb.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _AUDIO_USB_H_
8#define _AUDIO_USB_H_
9
10#include <data_fifo.h>
11
12#if (CONFIG_AUDIO_SOURCE_USB && !CONFIG_AUDIO_SAMPLE_RATE_48000_HZ)
13/* Only 48kHz is supported when using USB */
14#error USB only supports 48kHz
15#endif /* (CONFIG_AUDIO_SOURCE_USB && !CONFIG_AUDIO_SAMPLE_RATE_48000_HZ) */
16
25int audio_usb_start(struct data_fifo *fifo_tx_in, struct data_fifo *fifo_rx_in);
26
33void audio_usb_stop(void);
34
41
48
49#endif /* _AUDIO_USB_H_ */
int audio_usb_start(struct data_fifo *fifo_tx_in, struct data_fifo *fifo_rx_in)
Set fifo buffers to be used by USB module and start sending/receiving data.
int audio_usb_disable(void)
Stop and disable USB device.
int audio_usb_init(void)
Register and enable USB device.
void audio_usb_stop(void)
Stop sending/receiving data.
Data first-in first-out library header.
Definition data_fifo.h:34