aversive_10-03-12/modules/base/math/fixed_point/f32_int.c File Reference

#include <stdio.h>
#include <f32.h>

Go to the source code of this file.

Functions

f32 f32_from_integer (int16_t i, uint16_t d)
f32 f32_from_msb (int16_t i)
f32 f32_from_lsb (int16_t i)


Function Documentation

f32 f32_from_integer ( int16_t  i,
uint16_t  d 
)

convert 2 integer (int16_t and uint16_t) to a f32

Definition at line 28 of file f32_int.c.

References parse_symbols::f.

f32 f32_from_lsb ( int16_t  i  ) 

convert lsb integer (int16_t) to a f32 ( -0.5 < ret < 0.5 )

Definition at line 51 of file f32_int.c.

References parse_symbols::f.

f32 f32_from_msb ( int16_t  i  ) 

convert msb integer (int16_t) to a f32

Definition at line 39 of file f32_int.c.

References parse_symbols::f.


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6