A device driver block is a specialized form of the MATLAB System block that generates custom C/C++ device driver code when deployed to an Arduino® hardware board. Device driver blocks provide users easy access to hardware board features, such as communication protocols or hardware libraries, not available in the Simulink Support Package for Arduino Hardware.
You can develop a device driver block from a template System object™ and then share the completed blocks with other users.
|Get Arduino AVR library root directory path|
|Get Arduino AVR file root path|
|Get properties of Arduino board in active Simulink model|
|Get Arduino IDE file root path|
|Get Arduino library root directory path|
|Get Arduino SAMD library root directory path|
|Get Arduino SAMD file root path|
|Get Arduino SAM library root directory path|
|Get Arduino SAM file root path|
Learn the system requirements and recommended skills to develop device driver blocks for Arduino hardware boards.
Understand the concepts and operation of device driver blocks implemented using System object.
Create a Digital Write block using a System object.
Create a Digital Read block using a System object.
Create block masks for your device driver blocks.
Create a custom device driver block for Arduino hardware.
Choose and implement a data simulation mode for device driver blocks.
Package and distribute your device driver blocks.
A guide to enable Connected I/O on a Simulink® system object block that contains hardware specific code allowing access to hardware specific features.