openchronos-ng
opensource firmware for the ez430 chronos
dsp.h
00001 /*
00002  * dsp.h
00003  *
00004  *  Created on: Aug 5, 2010
00005  *      Author: nlv13513
00006  */
00007 
00008 // *************************************************************************************************
00009 #ifndef DSP_H_
00010 #define DSP_H_
00011 
00012 // Include section
00013 #include <openchronos.h>
00014 
00015 // *************************************************************************************************
00016 // Prototypes section
00017 extern int16_t mult_scale16(int16_t a, int16_t b); // returns (int16_t)((int32_t)a*b + 0x8000) >> 16
00018 extern int16_t mult_scale15(int16_t a, int16_t b); // returns (int16_t)(((int32_t)a*b << 1) + 0x8000) >> 16
00019 
00020 #endif /*DSP_H_*/
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines