zephyr::raw

Function gpio_pin_get_dt

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

@brief Get logical level of an input pin from a @p gpio_dt_spec.

This is equivalent to:

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

@param spec GPIO specification from devicetree @return a value from gpio_pin_get()