Digital Port Write
Libraries:
Embedded Coder Support Package for Infineon AURIX TC3x
Microcontrollers /
AURIX TC3x
Description
Write logical status of pins of a GPIO port for the Infineon AURIX TC3x Microcontrollers.
Ports
Input
Pin(s) — Status of GPIO pin(s)
scalar
|
vector
Specify a value at this port to set the status of GPIO pin(s). You can specify a non-negative scalar or a vector of non-negative elements.
Specify
0
to set the pin(s) to a low value.Specify a
nonzero
value to set the pin(s) to a high value.
The size of input ports available depends on the Number of pins parameter.
Data Types: single
| double
| int8
| int16
| int32
| uint8
| uint16
| uint32
| Boolean
Output
msg — SoC simulation message
scalar
The Digital Port Write block converts the data received at input port into SoC Blockset™ message form and the msg port outputs that message during simulation.
Dependencies
To view this port, select the Enable simulation port parameter and set the port type as SoC Data (Message based).
sig — Simulink based simulation signal
scalar
| vector
This port outputs the data received at the input port during simulation.
Dependencies
To view this port, select the Enable simulation port parameter and set the port type as Signal.
Parameters
Number of pins — Number of pins you want to configure
1
(default) |
2
|
3
|
...
Select the number of pins (1
to 15
) whose
output you want to configure in the block.
Enable simulation port — Enable peripheral simulation ports in the block
off
(default) | on
Select this parameter to enable peripheral simulation capability.
Port Type — Specify the type of peripheral simulation port
SoC Data (Message based)
(default) | Signal
Select this parameter to configure either the SoC compatible or the Simulink® signal based simulation ports to enable peripheral simulation capability.
Dependencies
To view this parameter, select the Enable simulation port parameter.
Version History
Introduced in R2024a
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.
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: .
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
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)