DSP program for the Surfboard hardware (PCB to be open sourced) http://www.avbotz.com/ourauv/electrical/signal-processing/

Dependencies:   MODDMA SimpleIOMacros mbed-dsp mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dma.h Source File

dma.h

00001 #ifndef DMA_H__
00002 #define DMA_H__
00003 
00004 #include "mbed.h"
00005 
00006 #include "IOMacros.h"
00007 
00008 #include "surfboard.h"
00009 #include "hydro_dsp.h"
00010 #include "MODDMA_cache.h"
00011 
00012 // TODO: check this value
00013 #define TARGET_SPS (105496 / 10) // samples per second
00014 
00015 int setup_dma();
00016 void teardown_dma();
00017 
00018 void event_irq_init();
00019 
00020 void dma_error_cb();
00021 void get_data();
00022 void parse_data();
00023 
00024 extern MODDMA_Cache dma;
00025 extern MODDMA_Config* dma_conf;
00026 //extern q15_t parsed[2][NUM_CHANNELS][BLOCK_SIZE];
00027 extern char parsed[2][NUM_CHANNELS][BLOCK_SIZE][3];
00028 extern char write_block;
00029 extern int buf_index;
00030 extern unsigned int read_blocks;
00031 
00032 #endif