below is the code which had writted in c++ and basically what this function do would be pack the value into hex and unpack the return value in hex
MTKF32X3_API_