Create a Project Folder
The standard folder structure for a device driver block contains the System object™, asrc
folder, and aninclude
folder.
Create a device driver project folder using thecodertarget.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 willWrite the Hardware Specific C/C++ Code.
See Also
Create a Digital Read Block|Write the Hardware Specific C/C++ Code