Hi @Krishan_T_S
I would suggest you refer to AN13288.
section 5.2
The present code example can be easily ported to any other target providing I²C or SPI
master and GPIO capabilities.
The only module requiring adaptation is the TML component (relates to how the target
provides this support), others modules being platform agnostic.
reference code is SW6705, you can get it from PN7160 product page.
Regards
Daniel