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

#include <stdio.h>
#include <f16.h>

Go to the source code of this file.

Functions

f16 f16_from_integer (int8_t i, uint8_t d)
f16 f16_from_msb (int8_t i)
f16 f16_from_lsb (int8_t i)


Function Documentation

f16 f16_from_integer ( int8_t  i,
uint8_t  d 
)

convert 2 integer (int8_t and uint8_t) to a f16

Definition at line 28 of file f16_int.c.

References parse_symbols::f.

f16 f16_from_lsb ( int8_t  i  ) 

convert lsb integer (int8_t) to a f16 ( -0.5 < ret < 0.5 )

Definition at line 51 of file f16_int.c.

References parse_symbols::f.

f16 f16_from_msb ( int8_t  i  ) 

convert msb integer (int8_t) to a f16

Definition at line 39 of file f16_int.c.

References parse_symbols::f.


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