Nios® V Processor Software Developer Handbook

ID 743810
Date 10/06/2025
Public
Document Table of Contents

18.1.3.16. alt_clic_get_trigger_mode()

Prototype

alt_clic_trigger_mode_t alt_clic_get_trigger_mode(alt_u32 irq)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

No.

Available from ISR

No.

Include

<sys/alt_irq.h>

Description

Gets the trigger mode of the CLIC platform interrupt indicated by irq.

The irq is the IRQ number, as defined in system.h, identifying the interrupt to register.

Return

This function returns the interrupt trigger mode if successful, or nonzero otherwise. The function fails if irq is an invalid platform interrupt number.

The enumeration of alt_clic_trigger_mode_t is as such:
  • 0 refers to ALT_CLIC_LOGIC_1_LEVEL_TRIGGER_MODE.
  • 1 refers to ALT_CLIC_POSITIVE_EDGE_TRIGGER_MODE.
  • 2 refers to ALT_CLIC_LOGIC_0_LEVEL_TRIGGER_MODE.
  • 3 refers to ALT_CLIC_NEGATIVE_EDGE_TRIGGER_MODE.