This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Create a Project Folder

The standard folder structure for a device driver block contains the System object™, a src folder, and an include folder.

Create a device driver project folder using the codertarget.createDriverProject function.

codertarget.createDriverProject('my_driver')

The device driver folder contains the following content:

  • A source folder, src, for the C/C++ source code.

  • An include folder, include, for the C/C++ header files and additional libraries.

  • A template System object for sink blocks, Sink.m.

  • A template System object for source blocks, Source.m.

In the next section, you will Write the Hardware-Specific C/C++ Code.

See Also

|