Hauptinhalt

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Gerätetreiber-Blöcke

Erstellen eines Gerätetreiber-Blocks, um auf bestimmte Funktionen der Hardwareplatine zuzugreifen

Ein Gerätetreiberblock ist eine spezialisierte Form des MATLAB®-Systemblocks, der benutzerdefinierten C/C++-Gerätetreibercode generiert, wenn er auf einem Arduino®-Hardwareboard bereitgestellt wird. Gerätetreiberblöcke bieten einfachen Zugriff auf Hardware-Board-Funktionen wie Kommunikationsprotokolle oder Hardware-Bibliotheken, auf die Sie mit Funktionen und Blöcken im Simulink® Support Package für Arduino-Hardware nicht zugreifen können.

Sie können einen Gerätetreiber-Block aus einer System object™-Vorlage entwickeln und den resultierenden Block mit anderen Benutzern teilen.

Funktionen

arduino.supportpkg.getAVRLibraryRootGet Arduino AVR library root directory path
arduino.supportpkg.getAVRRootGet Arduino AVR file root path
arduino.supportpkg.getBoardInfoGet properties of Arduino board in active Simulink model
arduino.supportpkg.getIDERootGet Arduino IDE file root path
arduino.supportpkg.getLibraryRootGet Arduino library root directory path
arduino.supportpkg.getSAMDLibraryRootGet Arduino SAMD library root directory path
arduino.supportpkg.getSAMDRootGet Arduino SAMD file root path
arduino.supportpkg.getSAMLibraryRootGet Arduino SAM library root directory path
arduino.supportpkg.getSAMRootGet Arduino SAM file root path

Themen