you can use this it is simple and easy to convert
typedef union {
struct hex{
unsigned char a;
unsigned char b;
}hex_da;
short int dec_val;
}hex2dec;
hex2dec value;
value.dec_val=10;
Now hex value is stored in hex_da structure access it for further use.