이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
장치 드라이버 블록
장치 드라이버 블록은 AMD® SoC 장치에 배포될 때 사용자 지정 C/C++ 코드를 생성하는 MATLAB System 블록의 특수한 형태입니다. 장치 드라이버 블록은 Embedded Coder® Support Package for AMD SoC 장치에서 사용할 수 없는 통신 프로토콜이나 하드웨어 라이브러리와 같은 하드웨어 보드 기능에 쉽게 액세스할 수 있도록 해줍니다.
템플릿 System object™에서 장치 드라이버 블록을 개발한 다음 완성된 블록을 다른 사용자와 공유할 수 있습니다.
도움말 항목
- Prerequisites
Learn the system requirements and recommended skills to develop device driver blocks for ARM® Cortex®-A based hardware boards.
- Structure of Device Driver System Object
Understand the concepts and operation of device driver blocks implemented using System object.
- 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.
- 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