Main Content
Device Drivers
Device drivers that communicate with target hardware are essential to many real-time development projects.
You can integrate existing C (or C++) device driver functions into Simulink® models by using the Legacy Code Tool. When you use the code generator to generate code from a model, the Legacy Code Tool can insert a call to your C function into the generated code. For details, see Import Calls to External Code into Generated Code with Legacy Code Tool and Integrate C Functions into Simulink Models with Legacy Code Tool.