zephyr::raw

Function gpio_port_set_clr_bits

source
pub unsafe extern "C" fn gpio_port_set_clr_bits(
    port: *const device,
    set_pins: u32,
    clear_pins: u32,
) -> i32
Expand description

@brief Set logical level of selected output pins.

@param port Pointer to the device structure for the driver instance. @param set_pins Value indicating which pins will be set to active. @param clear_pins Value indicating which pins will be set to inactive.

@retval 0 If successful. @retval -EIO I/O error when accessing an external GPIO chip. @retval -EWOULDBLOCK if operation would block.