主要内容

GPIO Read

Read GPIO pin status

  • GPIO Read block

Libraries:
STM32 Microcontroller Blockset / STM32F4-Discovery

Description

Read the logical value of a digital pin of the STM32F4 –Discovery™ board.

Examples

Ports

Output

expand all

Output port containing the logical value of a digital pin.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean | fixed point | enumerated | bus

Parameters

expand all

Select one of GPIOA to GPIOI ports to get a GPIO pin status.

Programmatic Use

Block Parameter: gpio_name

Select a GPIO pin to read the logical status.

Programmatic Use

Block Parameter: pin_number

Specify how often this block reads the pin value, in seconds. Enter a value greater than zero.

Programmatic Use

Block Parameter: sample_time

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2013b