There is no "function" that can give you a result like that based on a single example - particularly when there is no obvious relationship between the input:
0110 1000
and the expected output:
0000 1110
I suggest that you look at the manual or datasheets for the datalogger and try to work out in better detail what the dat ait provides actually is...