Device Driver Blocks
Create a device driver block to access specific features of your
hardware board
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 the other users.
Functions
arduino.supportpkg.getAVRLibraryRoot | Get Arduino AVR library root directory path (Since R2020b) |
arduino.supportpkg.getAVRRoot | Get Arduino AVR file root path (Since R2020b) |
arduino.supportpkg.getBoardInfo | Get properties of Arduino board in active Simulink model (Since R2020b) |
arduino.supportpkg.getIDERoot | Get Arduino IDE file root path (Since R2020b) |
arduino.supportpkg.getLibraryRoot | Get Arduino library root directory path (Since R2020b) |
arduino.supportpkg.getSAMDLibraryRoot | Get Arduino SAMD library root directory path (Since R2020b) |
arduino.supportpkg.getSAMDRoot | Get Arduino SAMD file root path (Since R2020b) |
arduino.supportpkg.getSAMLibraryRoot | Get Arduino SAM library root directory path (Since R2020b) |
arduino.supportpkg.getSAMRoot | Get Arduino SAM file root path (Since R2020b) |