13.6.3.3.1 Function port_pin_get_input_level()
Retrieves the state of a port pin that is configured as an input.
bool port_pin_get_input_level( const uint8_t gpio_pin)
Reads the current logic level of a port pin and returns the current level as a Boolean value.
Data direction | Parameter name | Description |
---|---|---|
[in] |
gpio_pin |
Index of the GPIO pin to read |
Returns
Status of the port pin's input buffer.