[][src]Function rpi_pico_sdk_sys::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:

bitinterrupt
0Low level
1High level
2Edge low
3Edge high