1

Dependencies:   mbed-dev-f303 FastPWM3

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers math_ops.h Source File

math_ops.h

00001 #ifndef MATH_OPS_H
00002 #define MATH_OPS_H
00003 
00004 #define PI 3.14159265359f
00005 #define SQRT3 1.73205080757f
00006 
00007 #include "math.h"
00008 
00009 float fmaxf(float x, float y);
00010 float fminf(float x, float y);
00011 float fmaxf3(float x, float y, float z);
00012 float fminf3(float x, float y, float z);
00013 float roundf(float x);
00014 void limit_norm(float *x, float *y, float limit);
00015 void limit(float *x, float min, float max);
00016 int float_to_uint(float x, float x_min, float x_max, int bits);
00017 float uint_to_float(int x_int, float x_min, float x_max, int bits);
00018 
00019 #endif