zephyr::raw

Function gpio_pin_get_config

source
pub unsafe extern "C" fn gpio_pin_get_config(
    port: *const device,
    pin: u8,
    flags: *mut u32,
) -> i32
Expand description

@brief Get a configuration of a single pin.

@param port Pointer to device structure for the driver instance. @param pin Pin number which configuration is get. @param flags Pointer to variable in which the current configuration will be stored if function is successful.

@retval 0 If successful. @retval -ENOSYS if getting current pin configuration is not implemented by the driver. @retval -EINVAL Invalid argument. @retval -EIO I/O error when accessing an external GPIO chip. @retval -EWOULDBLOCK if operation would block.