[−][src]Function rpi_pico_sdk::gpio_set_irq_enabled
pub unsafe extern "C" fn gpio_set_irq_enabled(
gpio: uint,
events: u32,
enabled: bool
)
\brief Enable or disable interrupts for specified GPIO \ingroup hardware_gpio
\note The IO IRQs are independent per-processor. This configures IRQs for the processor that calls the function.
\param gpio GPIO number \param events Which events will cause an interrupt \param enabled Enable or disable flag
Events is a bitmask of the following:
bit | interrupt |
---|---|
0 | Low level |
1 | High level |
2 | Edge low |
3 | Edge high |