A Block Floating Point Implementation on the TMS320C54x DSP
A Block Floating Point Implementation on the TMS320C54x DSP
A Block Floating Point Implementation on the TMS320C54x DSP
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
SPRA610<br />
A.6 Dsplib.h<br />
#ifndef _<strong>DSP</strong>LIB<br />
#define _<strong>DSP</strong>LIB<br />
#include “tms320.h”<br />
/* fft */<br />
short cfft8 (DATA *x, DATA scale);<br />
short cfft16 (DATA *x, DATA scale);<br />
short cfft32 (DATA *x, DATA scale);<br />
short cfft64 (DATA *x, DATA scale);<br />
short cfft128 (DATA *x, DATA scale);<br />
short cfft256 (DATA *x, DATA scale);<br />
short cfft512 (DATA *x, DATA scale);<br />
short cfft1024 (DATA *x, DATA scale);<br />
short rfft16 (DATA *x, DATA scale);<br />
short rfft32 (DATA *x, DATA scale);<br />
short rfft64 (DATA *x, DATA scale);<br />
short rfft128 (DATA *x, DATA scale);<br />
short rfft256 (DATA *x, DATA scale);<br />
short rfft512 (DATA *x, DATA scale);<br />
short rfft1024 (DATA *x, DATA scale);<br />
/* ifft */<br />
short cifft8 (DATA *x, DATA scale);<br />
short cifft16 (DATA *x, DATA scale);<br />
short cifft32 (DATA *x, DATA scale);<br />
short cifft64 (DATA *x, DATA scale);<br />
short cifft128 (DATA *x, DATA scale);<br />
short cifft256 (DATA *x, DATA scale);<br />
short cifft512 (DATA *x, DATA scale);<br />
short cifft1024 (DATA *x, DATA scale);<br />
short rifft16 (DATA *x, DATA scale);<br />
short rifft32 (DATA *x, DATA scale);<br />
short rifft64 (DATA *x, DATA scale);<br />
short rifft128 (DATA *x, DATA scale);<br />
short rifft256 (DATA *x, DATA scale);<br />
short rifft512 (DATA *x, DATA scale);<br />
short rifft1024 (DATA *x, DATA scale);<br />
short cbrev (DATA *x, DATA *y, ushort n);<br />
/* correlati<strong>on</strong>s */<br />
short acorr_raw (DATA *x, DATA *r, ushort nx, ushort nr);<br />
short acorr_bias(DATA *x, DATA *r, ushort nx, ushort nr);<br />
short acorr_unbias(DATA *x, DATA *r, ushort nx, ushort nr);<br />
short corr_raw (DATA *x, DATA *y, DATA *r, ushort nx, ushort ny);<br />
short corr_bias (DATA *x, DATA *y, DATA *r, ushort nx, ushort ny);<br />
A <str<strong>on</strong>g>Block</str<strong>on</strong>g> <str<strong>on</strong>g>Floating</str<strong>on</strong>g> <str<strong>on</strong>g>Point</str<strong>on</strong>g> <str<strong>on</strong>g>Implementati<strong>on</strong></str<strong>on</strong>g> <strong>on</strong> <strong>the</strong> <strong>TMS320C54x</strong> <strong>DSP</strong><br />
37