zephyr::raw

Function gpio_pin_get_config_dt

Source
pub unsafe extern "C" fn gpio_pin_get_config_dt(
    spec: *const gpio_dt_spec,
    flags: *mut u32,
) -> i32
Expand description

@brief Get a configuration of a single pin from a @p gpio_dt_spec.

This is equivalent to:

gpio_pin_get_config(spec->port, spec->pin, flags);

@param spec GPIO specification from devicetree @param flags Pointer to variable in which the current configuration will be stored if function is successful. @return a value from gpio_pin_configure()