pub unsafe extern "C" fn gpio_port_set_masked_raw(
port: *const device,
mask: u32,
value: u32,
) -> i32
Expand description
@brief Set physical level of output pins in a port.
Writing value 0 to the pin will set it to a low physical level. Writing value 1 will set it to a high physical level. This function ignores GPIO_ACTIVE_LOW flag.
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.