C++ - Convert Hex to DIN-Code : so first of all, I wanted to thank this Community. This Forum helped me a lot over years. Now it was time to register. So I need help.
I want convert a HEX-Code to a DIN-Code. The calculation is in the picture below.
The Hex-Code gets converted to Binary-Code. After that, it will get reversed bytewise and converted to DEC halfbyte-wise.
I have problems here. Eventhough I would have done a solution to this, it still would be really inefficent. So please support me. Maybe you can give me hints, on which functions too look at.
Thank you so much!

[Image - HEX to DIN][1]


  [1]: http://i.stack.imgur.com/azUTp.jpg