GPIO_enable_irq

Function GPIO_enable_irq 

Source
pub unsafe extern "C" fn GPIO_enable_irq(
    this_gpio: *mut gpio_instance_t,
    port_id: gpio_id_t,
)
Expand description

The GPIO_enable_irq() function is used to enable an interrupt to be generated based on the state of the input identified as a parameter.

@param this_gpio The this_gpio parameter is a pointer to the gpio_instance_t structure holding all the data regarding the CoreGPIO instance controlled through this function call.

@param port_id The port_id parameter identifies the GPIO input that the call to GPIO_enable_irq() enables to generate interrupts. An enumeration item of the form GPIO_n, where n is the number of the GPIO port, is used to identify the GPIO port. For example, GPIO_0 identifies the first GPIO port and GPIO_31 the last one.

@return none.

@example The call to GPIO_enable_irq() below allows GPIO 8 to generate interrupts.

@code GPIO_enable_irq( &g_gpio, GPIO_8 ); @endcode