sprint 1-alpha
Functions | Variables
sprint/utils/hex.h File Reference

methods to work on hex digit More...

Go to the source code of this file.

Functions

unsigned int hex2c (char c)
 convert a hex in number ->
unsigned int hex2b (const char *c)
 LITTLE ENDIAN.
unsigned int hex2w (const char *c)
 LITTLE ENDIAN.
unsigned int hex2dw (const char *c)
 LITTLE ENDIAN.
void w2hex (char *buf, unsigned short w)
 convert a unsigned short in 2 hexadecimal values
void dw2hex (char *buf, unsigned int w)
 convert a 32bit unsigned value in 4 hexadecimal values
unsigned int hextoi (const char *hex)
 convert a NUll terminated hex string in unsigned int

Variables

char bcd2hex [16]
 a lookup table to convert 16bit -> char

Detailed Description

methods to work on hex digit

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines