How to Automatically Create a Semiconductor C/C++ API for Embedded Code