zephyr::raw

Function gpio_pin_is_input_dt

source
pub unsafe extern "C" fn gpio_pin_is_input_dt(
    spec: *const gpio_dt_spec,
) -> i32
Expand description

@brief Check if a single pin from @p gpio_dt_spec is configured for input

This is equivalent to:

gpio_pin_is_input(spec->port, spec->pin);

@param spec GPIO specification from devicetree.

@return A value from gpio_pin_is_input().