Real-Time Workshop    

Creating Device Drivers

Device drivers that communicate with target hardware are essential to many real-time development projects. This section describes how to integrate device drivers into your target system. This includes incorporating drivers into your Simulink model and into the code generated from that model.

Device drivers are implemented as Simulink device driver blocks. A device driver block is an S-Function block that is bound to user-written driver code.

To implement device drivers, you should be familiar with the Simulink C MEX S-function format and API. The following documents contain more information about C MEX S-functions:

This section covers the following topics:


  Template Makefiles Inlined and Noninlined Drivers