zephyr::raw

Function gpio_pin_set_raw

source
pub unsafe extern "C" fn gpio_pin_set_raw(
    port: *const device,
    pin: u8,
    value: i32,
) -> i32
Expand description

@brief Set physical level of an output pin.

Writing value 0 to the pin will set it to a low physical level. Writing any value other than 0 will set it to a high physical level. This function ignores GPIO_ACTIVE_LOW flag.

@param port Pointer to the device structure for the driver instance. @param pin Pin number. @param value Value assigned to the pin.

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