Engee documentation

STM32 DO

Recording of digital outputs to the specified pin.

blockType: CFunction

Path in the library:

/Interfaces/Targets/STM32/STM32 DO

Description

To work with the block, install/update the support package. equipment.

Block STM32 DO used to record digital outputs to the specified pin.

Ports

Input

# Condition — logical 0 or logical 1
scalar

Details

Logical 0 or logical 1 with dimension ().

Data types

uint8_t

Complex numbers support

No

Parameters

Main group

# Порт: — the microcontroller port selected in CubeMX GPIO
A | B | C | D

Details
Values

A | B | C | D

Default value

D

Program usage name

m_port

Tunable

No

Evaluatable

Yes

# Вывод: — pin number for the selected GPIO port of the microcontroller
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Details
Values

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Default value

12

Program usage name

m_input

Tunable

No

Evaluatable

Yes

Configuring CubeMX to record analog outputs

In the "Pinout & Configuration" tab, select the GPIO pins of interest for recording in the main "Pinout" menu and point to them GPIO Output, pull-up resistor and the required pin state by default (high, low level):

stm32 prepare 4

stm32 prepare 5

Generate the code.