pub unsafe extern "C" fn gpio_pin_get_raw(
port: *const device,
pin: u8,
) -> i32
Expand description
@brief Get physical level of an input pin.
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.
@param port Pointer to the device structure for the driver instance. @param pin Pin number.
@retval 1 If pin physical level is high. @retval 0 If pin physical level is low. @retval -EIO I/O error when accessing an external GPIO chip. @retval -EWOULDBLOCK if operation would block.