Hello @HafizUsman, Good Day!
Unfortunately, sharing specific code implementations is out of our support scope.
However, if the purpose of your application is to send the calculated I2D value via an NDEF message to a tag reader as it is done in the app_demo_dp_tlogger example, I would suggest taking that example as a starting point in order to minimize modifications.
This application waits for an NDEF message containing a MIME record to arrive, it then extracts the payload and sends it to the "msg" module to generate a response, which is wrapped again in a message containing a single MIME record and written to the NFC memory for it to be retrieved by the reader.
A plausible option would be to replace the payload sent to the msg module with the result of the I2D conversion. The process of receiving and sending the payload to the msg module takes place in the "Execute(PMU_DPD_WAKEUPREASON_T wakeupReason)" function, found in maintlogger.c
I would suggest first running the example as it is to get a deeper understanding of its functionality and then implementing the code related to the I2D conversion. Please refer to the readme file of the example for further details about the application.
My best regards,
Daniel