mikroSDK Reference Manual
conversions.h File Reference

Go to the source code of this file.

Functions

void int8_to_hex (int8_t input, char *output)
 Converts int8_t to hex value. More...
 
void uint8_to_hex (uint8_t input, char *output)
 Converts uint8_t to hex value. More...
 
void uint16_to_hex (uint16_t input, char *output)
 Converts uint16_t to hex value. More...
 
void int16_to_hex (int16_t input, char *output)
 Converts int16_t to hex value. More...
 
void uint32_to_hex (uint32_t input, char *output)
 Converts uint32_t to hex value. More...
 
void int32_to_hex (int32_t input, char *output)
 Converts int32_t to hex value. More...
 
void uint64_to_hex (uint64_t input, char *output)
 Converts uint64_t to hex value. More...
 
void int64_to_hex (int64_t input, char *output)
 Converts int64_t to hex value. More...
 
void uint8_to_str (uint8_t input, char *output)
 Converts uint8_t to string. More...
 
void uint8_to_str_with_zeros (uint8_t input, char *output)
 Converts uint8_t to string with zeros. More...
 
void uint16_to_str (uint16_t input, char *output)
 Converts uint16_t to string. More...
 
void uint16_to_str_with_zeros (uint16_t input, char *output)
 Converts uint16_t to string with zeros. More...
 
void int8_to_str (int8_t input, char *output)
 Converts int8_t to string. More...
 
void int8_to_str_with_zeros (int8_t input, char *output)
 Converts int8_t to string with zeros. More...
 
void int16_to_str (int16_t input, char *output)
 Converts int16_t to string. More...
 
void int16_to_str_with_zeros (int16_t input, char *output)
 Converts int16_t to string with zeros. More...
 
void uint32_to_str (uint32_t input, char *output)
 Converts uint32_t to string. More...
 
void uint32_to_str_with_zeros (uint32_t input, char *output)
 Converts uint32_t to string with zeros. More...
 
void int32_to_str (int32_t input, char *output)
 Converts int32_t to string. More...
 
void int32_to_str_with_zeros (int32_t input, char *output)
 Converts int32_t to string with zeros. More...
 
void uint64_to_str_with_zeros (uint64_t input, char *output)
 Converts uint64_t to string with zeros. More...
 
void int64_to_str_with_zeros (int64_t input, char *output)
 Converts int64_t to string with zeros. More...
 
void uint64_to_str (uint64_t input, char *output)
 Converts uint64_t to string. More...
 
void int64_to_str (int64_t input, char *output)
 Converts int64_t to string. More...
 
uint8_t dec_to_bcd (uint8_t decnum)
 Converts decimal number to bcd value. More...
 
uint8_t bcd_to_dec (uint8_t bcdnum)
 Converts bcd value to decimal number. More...
 
uint16_t bcd_to_dec16 (uint16_t bcdnum)
 Converts bcd value to decimal number. More...
 
uint16_t dec_to_bcd16 (uint16_t decnum)
 Converts decimal number to bcd value. More...
 
char * r_trim (char *string)
 Trims the trailing spaces from an array given with *string. More...
 
char * l_trim (char *string)
 Trims the leading spaces from an array given with *string. More...
 
uint8_t float_to_str (float f_num, char *string)
 Converts floating point number into string. More...
 
uint8_t str_to_uint8 (char uint8_in[3])
 Converts string into uint8. More...
 
int8_t str_to_int8 (char int8_in[4])
 Converts string into int8. More...
 
int16_t str_to_int16 (char int16_in[6])
 Converts string into int16. More...
 
uint16_t str_to_uint16 (char uint16_in[5])
 Converts string into uint16. More...
 
uint32_t str_to_uint32 (char uint32_in[10])
 Converts string into uint32. More...
 
int32_t str_to_int32 (char int32_in[11])
 Converts string into int32. More...
 
int64_t str_to_int64 (char int64_in[20])
 Converts string into int64. More...
 
uint64_t str_to_uint64 (char uint64_in[20])
 Converts string into uint64. More...
 
float str_to_float (char data_str[20])
 Converts string into float. More...
 
uint8_t hex_to_uint8 (char hex_in[2])
 Converts hex into uint8. More...
 
uint16_t hex_to_uint16 (char hex_in[4])
 Converts hex into uint16. More...
 
uint32_t hex_to_uint32 (char hex_in[8])
 Converts hex into uint32. More...
 
uint64_t hex_to_uint64 (char hex_in[16])
 Converts hex into uint64. More...
 
int8_t hex_to_int8 (char hex_in[2])
 Converts hex into int8. More...
 
int16_t hex_to_int16 (char hex_in[4])
 Converts hex into int16. More...
 
int32_t hex_to_int32 (char hex_in[8])
 Converts hex into int32. More...
 
int64_t hex_to_int64 (char hex_in[16])
 Converts hex into int64. More...
 
uint8_t long_double_to_str (long double dnum, char *str)
 Converts a long double number into a string. More...