Digital Port Read
Libraries:
Embedded Coder Support Package for Infineon AURIX TC3x
Microcontrollers /
AURIX TC3x
Description
Read the logical status of a GPIO port pin for the Infineon AURIX TC3x Microcontrollers.
Ports
Input
sig — Simulink based simulation signal
scalar
|
vector
The simulation-only signal input port acts as pass-through with the output of the Digital Port Read block during simulation.
Dependencies
To view this port, select the Enable simulation port parameter.
Output
Pin(s) — GPIO pin status
scalar
|
vector
The port outputs the status of the digital pin you select in the Port number and Pin number parameter from Digital Port Read Peripheral Configuration.
The port outputs the status as a logical scalar if the pin number is
1
or as a logical vector if it is greater than
1
.
Data Types: Boolean
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.
Sample time — Frequency at which block reads input pin values
-1
(default) |
scalar
|
vector
Specify in seconds how often the block should read the pin value.
When you specify this parameter as -1
, Simulink® determines the best sample time for the block based on the
block context within the model.
Enable simulation port — Enable peripheral simulation ports in the block
off
(default) |
on
Select this parameter to enable peripheral simulation capability.
Note
If you do not have a SoC Blockset™ license, the Enable simulation port parameter is visible but you cannot enable it.
Version History
Introduced in R2024a
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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)