이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
장치 드라이버 블록
장치 드라이버 블록은 Arduino® 하드웨어 보드에 배포될 때 사용자 지정 C/C++ 장치 드라이버 코드를 생성하는 특수한 형태의 MATLAB System 블록입니다. 장치 드라이버 블록을 사용하면 Simulink® Support Package for Arduino Hardware에서 사용할 수 없는 통신 프로토콜이나 하드웨어 라이브러리와 같은 하드웨어 보드 기능에 쉽게 액세스할 수 있습니다.
템플릿 System object™에서 장치 드라이버 블록을 개발한 다음 완성된 블록을 다른 사용자와 공유할 수 있습니다.
함수
arduino.supportpkg.getAVRLibraryRoot | Get Arduino AVR library root directory path |
arduino.supportpkg.getAVRRoot | Get Arduino AVR file root path |
arduino.supportpkg.getBoardInfo | Get properties of Arduino board in active Simulink model |
arduino.supportpkg.getIDERoot | Get Arduino IDE file root path |
arduino.supportpkg.getLibraryRoot | Get Arduino library root directory path |
arduino.supportpkg.getSAMDLibraryRoot | Get Arduino SAMD library root directory path |
arduino.supportpkg.getSAMDRoot | Get Arduino SAMD file root path |
arduino.supportpkg.getSAMLibraryRoot | Get Arduino SAM library root directory path |
arduino.supportpkg.getSAMRoot | Get Arduino SAM file root path |
도움말 항목
- Prerequisites for Developing Device Driver Blocks
Learn the system requirements and recommended skills to develop device driver blocks for Arduino hardware boards.
- Structure of Device Driver System Object
Understand the concepts and operation of device driver blocks implemented using a System object.
- Create a Digital Write Block
Create a Digital Write block using a System object.
- 단계 1: Create a Project Folder
- 단계 2: Write the Hardware-Specific C/C++ Code
- 단계 3: Select a System Object Template
- 단계 4: Specify the Initialization, Output, and Termination Behavior
- 단계 5: Test System Object on MATLAB Command Line
- 단계 6: Create the MATLAB System Block
- 단계 7: Generate Code and Deploy the Model to the Hardware
- Create a Digital Read Block
Create a Digital Read block using a System object.
- Block Mask
Create block masks for your device driver blocks.
- 단계 1: Add Description for Users
- 단계 2: Add Pin Number Property
- 단계 3: Add Push Button to View Pin Map
- Create Custom Device Driver Block for Arduino Library
Create a custom device driver block for Arduino hardware.
- 단계 1: Create Project and Libraries Folder
- 단계 2: Write Hardware Specific C/C++ Code
- 단계 3: Select System Object Template
- 단계 4: Specify Initialization, Output, and Termination Behavior
- 단계 5: Update Paths for Source and Header Files
- 단계 6: Set Output Port Properties
- 단계 7: Create MATLAB System Block
- 단계 8: Generate Code and Deploy Model to Hardware
- Simulation with Device Driver Blocks
Choose and implement a data simulation mode for device driver blocks.
- Sharing Device Driver Blocks with Other Users
Package and distribute your device driver blocks.
- Measure Servo Motor Shaft Angle Using a Device Driver Block in Connected I/O
A guide to enable Connected I/O on a Simulink System object block that contains hardware specific code allowing access to hardware specific features.