pub unsafe extern "C" fn gpio_port_set_masked(
port: *const device,
mask: u32,
value: u32,
) -> i32
Expand description
@brief Set logical level of output pins in a port.
Set logical level of an output pin taking into account GPIO_ACTIVE_LOW flag. Value 0 sets the pin in logical 0 / inactive state. Value 1 sets the pin in logical 1 / active state. If pin is configured as Active High, the default, setting it in inactive state will force the pin to a low physical level. If pin is configured as Active Low, setting it in inactive state will force the pin to a high physical level.
Pin with index n is represented by bit n in mask and value parameter.
@param port Pointer to the device structure for the driver instance. @param mask Mask indicating which pins will be modified. @param value Value assigned to the output pins.
@retval 0 If successful. @retval -EIO I/O error when accessing an external GPIO chip. @retval -EWOULDBLOCK if operation would block.