# Wake-up interrupts 

Source: [https://docs.qualcomm.com/doc/80-88500-4/topic/34_Wake_up_interrupts.html](https://docs.qualcomm.com/doc/80-88500-4/topic/34_Wake_up_interrupts.html)

A subset of GPIOs can wake up the device from deep sleep. When a GPIO that belongs to
    this subset of wake-up interrupts is enabled as an interrupt source, the GPIO interrupt driver
    forwards this information to resource power manager (RPM).

The GPIO interrupt driver automatically identifies and registers wake-up interrupts. Note that
      there are some GPIOs that can act as wake-up sources. For more information, see <cite class="cite">QRB5165
        Data Sheet</cite> (80-PV086-1).

- Set trigger
The following function sets the trigger type for the given
          interrupt:

        void HAL_gpioint_SetTrigger (uint32 nGPIO, 
        HAL_gpioint_TriggerType eTrigger);
        Copy to clipboard
- Clear
    The following function clears the given
        interrupt:

        void HAL_gpioint_Clear (uint32 nGPIO);Copy to clipboard
- Inquiry
Some HAL functions respond to certain inquiries of the driver code. The following function
          retrieves the next pending GPIO interrupt in the given group. This function returns a GPIO
          number if the GPIO interrupt is pending or HAL\_GPIOINT\_NONE if no GPIO interrupts are
          pending.

        void HAL_gpioint_GetPending (HAL_gpioint_GroupType eGroup, 
        uint32 *pnGPIO);
         Copy to clipboard

The following function retrieves the number of supported GPIO interrupts on this platform, which may be less than HAL\_GPIOINT\_NUM:

    void HAL_gpioint_GetNumber (uint32 *pnNumber);Copy to clipboard

The following function gets the current trigger type for the given
      interrupt:

    void HAL_gpioint_GetTrigger (uint32 nGPIO, 
    HAL_gpioint_TriggerType *peTrigger);
    Copy to clipboard

The following function checks whether the given interrupt is supported on this platform:

    boolean HAL_gpioint_IsSupported (uint32 nGPIO);Copy to clipboard

The following function checks whether a given interrupt is waiting to be serviced:

    boolean HAL_gpioint_IsPending (uint32 nGPIO);Copy to clipboard

The following function checks whether the given interrupt is enabled or not:

    boolean HAL_gpioint_IsEnabled (uint32 nGPIO);Copy to clipboard

**Parent Topic:** [GPIO interrupt driver](https://docs.qualcomm.com/doc/80-88500-4/topic/31_GPIO_interrupt_driver.html)

Last Published: Aug 18, 2023

[Previous Topic
DAL GPIO interrupt APIs](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/33_DAL_GPIO_interrupt_APIs.md) [Next Topic
Performance](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/37_Performance.md)