MathWorks
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Contact Us
  • Get MATLAB
MathWorks
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB

Documentation

  • All
  • Examples
  • Functions
  • Blocks
  • More
    • Support
    • MathWorks
    • Documentation
    • MathWorks
    • Documentation
    • Support
    • All
    • Examples
    • Functions
    • Blocks
    • Trial Software
    • Product Updates
    • Documentation Home
    • Embedded Coder Support Package for Xilinx Zynq Platform
    • Device Driver Blocks
    • Create a Digital Read Block
    • On this page
    • See Also

    Create a Digital Read Block

    To create a Digital Read block that reads the value of GPIO pins when deployed to an ARM® Cortex®-A based hardware board.

    1. Create a Project Folder

    2. Write the Hardware Specific C/C++ Code

    3. Select System Object Template

    4. Specify the Initialization, Output, and Termination

    5. Set Output Port Properties

    6. Test System Object

    See Also

    Block Mask | Create a Digital Write Block | Sharing Device Driver Blocks with Other Users | Simulation with Device Driver Blocks

    MATLAB Command

    You clicked a link that corresponds to this MATLAB command:

    
            

    Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

    MathWorks

    Select a Web Site

    Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

    Select web site

    You can also select a web site from the following list:

    How to Get Best Site Performance

    Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

    Americas

    • América Latina (Español)
    • Canada (English)
    • United States (English)

    Europe

    • Belgium (English)
    • Denmark (English)
    • Deutschland (Deutsch)
    • España (Español)
    • Finland (English)
    • France (Français)
    • Ireland (English)
    • Italia (Italiano)
    • Luxembourg (English)
    • Netherlands (English)
    • Norway (English)
    • Österreich (Deutsch)
    • Portugal (English)
    • Sweden (English)
    • Switzerland
      • Deutsch
      • English
      • Français
    • United Kingdom (English)

    Asia Pacific

    • Australia (English)
    • India (English)
    • New Zealand (English)
    • 中国
      • 简体中文
      • English
    • 日本 (日本語)
    • 한국 (한국어)

    Contact your local office

    • Trial Software
    • Product Updates
    Embedded Coder Support Package for Xilinx Zynq Platform Documentation
    • Functions and Other Reference
    • Release Notes
    • PDF Documentation
    Support
    • MATLAB Answers
    • Installation Help
    • Bug Reports
    • Product Requirements
    • Software Downloads
    10 Best Practices for Deploying AUTOSAR Using Simulink

    10 Best Practices for Deploying AUTOSAR Using Simulink

    Download guide

    Explore Products

    • MATLAB
    • Simulink
    • Student Software
    • Hardware Support
    • File Exchange

    Try or Buy

    • Downloads
    • Trial Software
    • Contact Sales
    • Pricing and Licensing
    • How to Buy

    Learn to Use

    • Documentation
    • Tutorials
    • Examples
    • Videos and Webinars
    • Training

    Get Support

    • Installation Help
    • Answers
    • Consulting
    • License Center

    About MathWorks

    • Careers
    • Newsroom
    • Social Mission
    • Contact Us
    • About MathWorks

    MathWorks

    Accelerating the pace of engineering and science

    MathWorks is the leading developer of mathematical computing software for engineers and scientists.

    Discover...

    • Australia
    • Patents
    • Trademarks
    • Privacy Policy
    • Preventing Piracy
    • Application Status

    © 1994-2019 The MathWorks, Inc.

    • Facebook
    • Twitter
    • Instagram
    • YouTube
    • LinkedIn
    • RSS

    Join the conversation