|
Last change
on this file since 16318 was 10094, checked in by neise, 15 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 |
|
|---|
| 12 | extern U08 nc_buffer[];
|
|---|
| 13 | //-----------------------------------------------------------------------------
|
|---|
| 14 |
|
|---|
| 15 | pU08 nc_format(pU08 source_ptr,U08 digits);
|
|---|
| 16 | pU08 nc_U08_to_str(U8 value,U08 digits);
|
|---|
| 17 | pU08 nc_S08_to_str(S08 signed_value,U08 digits);
|
|---|
| 18 | pU08 nc_U08_to_hex(U08 value);
|
|---|
| 19 | pU08 nc_U08_to_bin(U08 value);
|
|---|
| 20 | pU08 nc_U16_to_str(U16 value,U08 digits);
|
|---|
| 21 | pU08 nc_S16_to_str(S16 signed_value,U08 digits);
|
|---|
| 22 | pU08 nc_U16_to_hex(U16 value);
|
|---|
| 23 | pU08 nc_U32_to_str(U32 value,U08 digits);
|
|---|
| 24 | pU08 nc_S32_to_str(S32 signed_value,U08 digits);
|
|---|
| 25 | pU08 nc_U32_to_hex(U32 value);
|
|---|
| 26 | pU08 nc_float_to_str(float value,U08 decimals,U08 digits);
|
|---|
| 27 | //-----------------------------------------------------------------------------
|
|---|
| 28 |
|
|---|
| 29 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.