Read GPIO pin status
Embedded Coder Support Package for STMicroelectronics Discovery Boards/STM32F4-Discovery
Read the logical value of a digital pin of the STM32F4 –Discovery™ board.
Port_1 — Output port containing the logical value
Output port containing the logical value of a digital pin.
fixed point |
GPIO port — GPIO port to read the GPIO pin status
GPIOA (default) | GPIOA | GPIOB | GPIOC | GPIOD | GPIOE | GPIOF | GPIOG | GPIOH | GPIOI
Select one of GPIOA to GPIOI ports to get a GPIO pin status.
Pin number — GPIO pin to read the logical status
0 (default) | scalar
Select a GPIO pin to read the logical status.
Sample time — Time frequency at which the read the pin value
-1 (default) | scalar
Specify how often this block reads the pin value, in seconds. Enter a value greater than zero.
Introduced in R2013b