设备驱动程序块是MATLAB系统块,当部署到Arduino时,生成定制的C/ c++设备驱动程序代码®硬件板。设备驱动程序块为用户提供了容易访问硬件板特性,如通信协议或硬件库,在万博1manbet万博1manbetxxSimulink支持包Arduino硬件.
您可以从模板System对象™中开发设备驱动程序块,然后与其他用户共享完成的块。
arduino.万博1manbetxsupportpkg.getavrlibraryroot. |
得到ArduinoAVR库根目录路径 |
arduino.万博1manbetxsupportpkg.getAVRRoot |
得到ArduinoAVR文件根路径 |
arduino.万博1manbetxsupportpkg.getBoardInfo |
得到的属性Arduino在活跃的万博1manbetx模型 |
arduino.万博1manbetxsupportpkg.getIDERoot |
得到ArduinoIDE文件根路径 |
arduino.万博1manbetxsupportpkg.getLibraryRoot |
得到Arduino库根目录路径 |
arduino.万博1manbetxsupportpkg.getSAMDLibraryRoot |
得到ArduinoSAMD库根目录路径 |
arduino.万博1manbetxsupportpkg.getSAMDRoot |
得到ArduinoSAMD文件根路径 |
arduino.万博1manbetxsupportpkg.getSAMLibraryRoot |
得到ArduinoSAM库根目录路径 |
arduino.万博1manbetxsupportpkg.getSAMRoot |
得到ArduinoSAM文件根路径 |
学习Arduino硬件板设备驱动块开发的系统要求和推荐技能。
理解使用System对象实现的设备驱动程序块的概念和操作。
使用System对象创建数字写块。
使用System对象创建数字读块。
为您的设备驱动程序块创建块掩码。
为Arduino硬件创建一个自定义设备驱动程序块。
选择并实现设备驱动程序块的数据模拟模式。
包并分发您的设备驱动程序块。
在Simulink上启用连接I/O的指南万博1manbetx®系统对象块,包含允许访问硬件特定特性的硬件特定代码。