pub unsafe extern "C" fn gpio_pin_configure(
port: *const device,
pin: u8,
flags: u32,
) -> i32
Expand description
@brief Configure a single pin.
@param port Pointer to device structure for the driver instance. @param pin Pin number to configure. @param flags Flags for pin configuration: ‘GPIO input/output configuration flags’, ‘GPIO pin drive flags’, ‘GPIO pin bias flags’.
@retval 0 If successful. @retval -ENOTSUP if any of the configuration options is not supported (unless otherwise directed by flag documentation). @retval -EINVAL Invalid argument. @retval -EIO I/O error when accessing an external GPIO chip. @retval -EWOULDBLOCK if operation would block.