Main Content

Digital Read

Read value from GIOB[4] or GIOB[5] pins on Texas Instruments Hercules RM57Lx microcontroller

Add-On Required: This feature requires the Embedded Coder Support Package for ARM Cortex-R Processors add-on.

  • Digital Read block

Libraries:
Embedded Coder Support Package for ARM Cortex-R Processors

Description

Read logical value from the GIOB[4] or GIOB[5] pins of the Texas Instruments® Hercules RM57Lx microcontroller based on the ARM® Cortex®-R processor core.

The Digital Read block outputs a signal of type uint32.

The GIOB[4] or GIOB[5] pins connect to User Switch A and User Switch B on the Texas Instruments Hercules RM57Lx Launchpad hardware board, respectively.

Examples

Ports

Output

expand all

Logical value of the specified GIO pin, returned as a boolean scalar.

Data Types: uint32

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

To set the block parameter value programmatically, use the set_param function.

To get the block parameter value programmatically, use the get_param function.

Select the GIO pin on the Texas Instruments Hercules RM57Lx Launchpad hardware board from which you want read the logical status.

Programmatic Use

Block Parameter: Whichpin

Version History

Introduced in R2016b