[−][src]Function mynewt::hw::hal::hal_gpio_read
pub unsafe extern "C" fn hal_gpio_read(pin: c_int) -> c_int
Reads the specified pin.
pin
: Pin number to read
Return: int 0: low, 1: high
pub unsafe extern "C" fn hal_gpio_read(pin: c_int) -> c_int
Reads the specified pin.
pin
: Pin number to readReturn: int 0: low, 1: high