/*H*************************************************************************** * * $Archive:: $ * $Revision:: $ * $Date:: $ * $Author:: $ * * DESCRIPTION: * Data definitions for the TMS320C54XX timer. * * USAGE/LIMITATIONS: * * NOTES: * * AUTHOR: Patrick Cresap, 2000 * *H***************************************************************************/ #ifndef fft_data_h #define fft_data_h /*---- compilation control switches ----------------------------------------*/ /***************************************************************************** * INCLUDE FILES (minimize nesting of header files) *****************************************************************************/ /*---- system and platform files -------------------------------------------*/ /*---- program files -------------------------------------------------------*/ /***************************************************************************** * FILE CONTENT *****************************************************************************/ /***************************************************************************** * FUNCTIONAL AREA DETAIL *****************************************************************************/ /*A*************************************************************************** * NAME: * * USAGE: * * NOTES: * *A***************************************************************************/ /*---- context -------------------------------------------------------------*/ /*---- data descriptions ---------------------------------------------------*/ /*---- global data declarations --------------------------------------------*/ #define NH 128 /*length of imaginary part of impulse response = fft length*/ /*has to be hardcoded because of stupid dsplib*/ #define IN_BUF_LEN 256 #define ARRAY_BUF_LEN (2 * IN_BUF_LEN) typedef struct data_array_struct { DATA data_array[ARRAY_BUF_LEN]; }DATA_ARRAY_STRUCT; DATA_ARRAY_STRUCT *in_buf0 = (DATA_ARRAY_STRUCT *) 0x1000; unsigned short in_buf0_count = 0; DATA_ARRAY_STRUCT *in_buf1 = (DATA_ARRAY_STRUCT *) 0x1200; unsigned short in_buf1_count = 0; DATA_ARRAY_STRUCT *in_buf2 = (DATA_ARRAY_STRUCT *) 0x1400; unsigned short in_buf2_count = 0; DATA_ARRAY_STRUCT *in_buf3 = (DATA_ARRAY_STRUCT *) 0x1600; unsigned short in_buf3_count = 0; DATA_ARRAY_STRUCT *h = (DATA_ARRAY_STRUCT *) 0x1800; DATA_ARRAY_STRUCT *temp_buf = (DATA_ARRAY_STRUCT *) 0x1A00; unsigned short rec_array = 0; short scale = 1; short noscale = 0; #endif /* fft_data_h END OF FILE -------------------------------------*/