source: firmware/FSC/usb_src/num_conversion.h@ 19114

Last change on this file since 19114 was 10094, checked in by neise, 14 years ago
initial commit of FSC firmware - use for FSC testing only -
File size: 1.1 KB
Line 
1#ifndef __NUM_CONVERSION_H
2#define __NUM_CONVERSION_H
3//-----------------------------------------------------------------------------
4
5#include "typedefs.h"
6//-----------------------------------------------------------------------------
7
8#define NC_BUFFER_LENGTH 16 // Conversion buffer size
9#define NC_FILL_CHAR 32 // Character for post digits
10//-----------------------------------------------------------------------------
11
12extern U08 nc_buffer[];
13//-----------------------------------------------------------------------------
14
15pU08 nc_format(pU08 source_ptr,U08 digits);
16pU08 nc_U08_to_str(U8 value,U08 digits);
17pU08 nc_S08_to_str(S08 signed_value,U08 digits);
18pU08 nc_U08_to_hex(U08 value);
19pU08 nc_U08_to_bin(U08 value);
20pU08 nc_U16_to_str(U16 value,U08 digits);
21pU08 nc_S16_to_str(S16 signed_value,U08 digits);
22pU08 nc_U16_to_hex(U16 value);
23pU08 nc_U32_to_str(U32 value,U08 digits);
24pU08 nc_S32_to_str(S32 signed_value,U08 digits);
25pU08 nc_U32_to_hex(U32 value);
26pU08 nc_float_to_str(float value,U08 decimals,U08 digits);
27//-----------------------------------------------------------------------------
28
29#endif
Note: See TracBrowser for help on using the repository browser.