Atmel Software Framework

usb_stream_context_t Struct Reference

#include <usb_stream_player.h>

Data Fields

volatile int8_t audio_buffer [USB_STREAM_BUFFER_NUMBER][USB_STREAM_REAL_BUFFER_SIZE]
 The USB stream audio FIFO is composed of buffers. More...
 
volatile uint16_t audio_buffer_size [USB_STREAM_BUFFER_NUMBER]
 Holds the data size of the audio packets stored into the buffers. More...
 
uint8_t bits_per_sample
 
uint8_t channel_count
 
volatile uint8_t rd_id
 Reader buffer id. More...
 
uint32_t sample_rate
 
volatile int status
 Driver status. More...
 
volatile bool synchronized
 Boolean telling if synchro is acting or not. More...
 
volatile uint8_t wr_id
 Writer buffer id. More...
 

volatile int8_t usb_stream_context_t::audio_buffer[USB_STREAM_BUFFER_NUMBER][USB_STREAM_REAL_BUFFER_SIZE]

The USB stream audio FIFO is composed of buffers.

Referenced by usb_stream_fifo_get(), and usb_stream_fifo_get_buffer().

volatile uint16_t usb_stream_context_t::audio_buffer_size[USB_STREAM_BUFFER_NUMBER]

Holds the data size of the audio packets stored into the buffers.

Referenced by usb_stream_fifo_get(), usb_stream_fifo_push(), and usb_stream_init().

uint8_t usb_stream_context_t::bits_per_sample
uint8_t usb_stream_context_t::channel_count
volatile uint8_t usb_stream_context_t::rd_id
uint32_t usb_stream_context_t::sample_rate
volatile bool usb_stream_context_t::synchronized
volatile uint8_t usb_stream_context_t::wr_id