15 #ifndef __SAMPLE_486__ 16 #define __SAMPLE_486__ 23 #define DEFAULT_BLOCKSIZE 100 volatile uint32_t * ADC_Input_Buffer
Buffer to store samples transfered from the ADC by a DMA.
volatile int Lower_Ready
Flag to indicate which half of ADC buffer may be processed.
enum Processor_Task volatile Sampler_Status
User is working on a buffer of data.
void getblockstereo(float *chan1, float *chan2)
Request a block of data from the two ADC sample streams (Stereo input case)
volatile uint32_t * DAC_Output_Buffer
Buffer to hold samples to be transfered to the DAC(s) by a DMA.
void setblocksize(uint32_t blksiz)
Set the number of samples that the user should expect to process per block.
uint32_t ADC_Buffer_Size
Total buffer size being filled by DMA for ADC/DAC.
void getblock(float *working)
Request a block of data from the ADC sample stream.
User is done working... waiting for the next buffer.
void putblock(float *working)
Send a buffer of data to the DAC output stream.
Processor_Task
keep track of whether a user is working on a buffer, or waiting for the next buffer ...
int getblocksize(void)
Return the number of samples that the user should expect to process per block.
uint32_t ADC_Block_Size
Number of samples user accesses per data block.
void putblockstereo(float *chan1, float *chan2)
Send two buffers of data to the DACs for stereo output.
User is not ready for data yet.