www.pudn.com > pi_svpwm.zip > rt_look.h, change:2014-03-26,size:493b


#include "__cf_svpi.h" 
#ifndef RTW_HEADER_rt_look_h_ 
#define RTW_HEADER_rt_look_h_ 
#include "rtwtypes.h" 
#ifdef DOINTERPSEARCH 
#include <float.h> 
#endif 
#ifndef INTERP 
#define INTERP(x,x1,x2,y1,y2)         ( (y1)+(((y2) - (y1))/((x2) - (x1)))*((x)-(x1)) ) 
#endif 
#ifndef ZEROTECHNIQUE 
#define ZEROTECHNIQUE 
typedef enum { NORMAL_INTERP , AVERAGE_VALUE , MIDDLE_VALUE } ZeroTechnique ; 
#endif 
extern int_T rt_GetLookupIndex ( const real_T * x , int_T xlen , real_T u ) ; 
#endif