Simulink® Real-Time™ Driver Authoring Tool helps you create templates for simple custom device drivers. A simple custom device driver is one that does not perform DMA or interrupt processing. The Simulink Real-Time Driver Authoring Tool is not useful for these more complicated implementations.
Based on the inputs you provide to Simulink Real-Time Driver Authoring Tool, it can create a number of files, including the following. Of these files, you need to edit only the source C code file. You can also optionally edit the block mask file.
Template for the source C code for driver. You need to enter your C code.
Header file for driver.
S-function file for driver. This file contains S-function callback methods and options for the driver.
Optional. Simulink Coder™ TLC code generation file.
You typically need a
Optional. Block mask model file for driver. After the Simulink Real-Time Driver Authoring Tool creates the supporting files, it creates the block mask for the driver and displays it in the Simulink model window. The tool creates this file only if you select the MEX C file check box.
Optional. If you requested the creation of a C MEX file, the tool generates one for you.
Note: The Simulink Real-Time Driver Authoring Tool creates custom driver templates using the Legacy Code Tool (LCT). You do not need prior knowledge of the Legacy Code Tool to use the Simulink Real-Time Driver Authoring Tool. If you want to read about the Legacy Code Tool, see Integrate C Functions Using Legacy Code Tool.