Digital Port Read
Libraries:
Embedded Coder Support Package for Infineon AURIX TC4x
Microcontrollers /
AURIX TC4x
Description
Read the logical status of a GPIO port pin for the Infineon AURIX TC4x Microcontrollers.
Ports
Input
msg — SoC Blockset simulation message
scalar
This port receives the SoC Blockset™ message from the interface blocks and the Digital Port Read block converts the msg into data to be emitted at the output port 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
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 and set the port type as Signal.
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 16
)
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.
Port Type — Specify the type of peripheral simulation port
SoC Data (Message based)
(default) | Signal
Select this parameter to configure either the SoC Blockset 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 R2022b
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de 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)