zephyr::raw

Function gpio_pin_is_output_dt

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

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

This is equivalent to:

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

@param spec GPIO specification from devicetree.

@return A value from gpio_pin_is_output().