pub unsafe extern "C" fn gpio_port_get_raw(
port: *const device,
value: *mut u32,
) -> i32
Expand description
@brief Get physical level of all input pins in a port.
A low physical level on the pin will be interpreted as value 0. A high physical level will be interpreted as value 1. This function ignores GPIO_ACTIVE_LOW flag.
Value of a pin with index n will be represented by bit n in the returned port value.
@param port Pointer to the device structure for the driver instance. @param value Pointer to a variable where pin values will be stored.
@retval 0 If successful. @retval -EIO I/O error when accessing an external GPIO chip. @retval -EWOULDBLOCK if operation would block.