I am currently working on this and finding it difficult to understand the controller due to the limited resources available.
Hello,
if you are not able to write your own driver, you can use SDK driver provided by NXP. SDK is included in S32 Design Studio. Please see the link below.
https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=S32-DS-E2002-0
As soon as you have installed S32DS, please install also latest update to have access to the newest SDK.
S32 Design Studio for Power Architecture 2017.R1 - Update 10 available
After all installation is complete, you can create project from example. Please see the figure below:
If you have any other questions, please feel free to write me back.
Regards,
Martin