主要内容

GPIO Write

Set GPIO pin status

  • GPIO Write block

Libraries:
STM32 Microcontroller Blockset / STM32F4-Discovery

Description

Set the logical value of a digital pin of the STM32F4 -Discovery™ board.

Examples

Ports

Input

expand all

The input port to set the GPIO pin status.

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 set a GPIO pin status.

Programmatic Use

Block Parameter: gpio_name

Select a GPIO pin to write the logical status.

Programmatic Use

Block Parameter: pin_number

Select this option to set the GPIO pin status during model initialization.

Programmatic Use

Block Parameter: gpio_init_out

Select this option to enable GPIO pin toggling when the input is ‘true’.

Programmatic Use

Block Parameter: toggle_pin

Extended Capabilities

expand all

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

Version History

Introduced in R2013b