Hello,
unfortunately your question does not contain a lot information - so let me give you some general hints:
Within the Build Environment for the STM32F746 Discovery board you will find an example called 'DeviceIntegration', which shows all principles how to access an underlying API.
Furthermore, our online documentation contains some dedicated articles about the different integration aspects:
I hope this helps...
Best regards,
Manfred.