Hello KVijay32,
First of all, I would like to know if you took the time to get familiar with our MC ecosystem, we have different sets of documentation that helps the user to navigate through it. You can find most infos you are looking for in the MC wiki.
This will tell you more about the tools that we provide, and how to use them.
Also know that you can use the dedicated user functions located in mc_api.c in your project. The description can also be found in our documentation : via WorkBench, by clicking on About -> Documentations -> Documentation -> in the newly open browser window, click on Components, then Motor Control API. The User Manual part of the documentation can also give infos for fault detection.
If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.