![]() |
Altera HWLIB
16.0
The Altera HW Manager API Reference Manual
|
The functions in this group provide management of interrupts originating from the FPGA Manager.
The following interrupt request (IRQ) signal is sourced from the FPGA Manager:
fpga_man_IRQ - FPGA Manager control block interrupt output. Provides monitoring of the configuration and operational status of the FPGA. The interrupt signal assertion value is the logical OR of twelve sources that monitor the status of the FPGA control block (CB). The twelve FPGA CB interrupt sources are enumerated and described by the type ALT_FPGA_MON_STATUS_t.
Each FPGA monitor status condition may be individually disabled/enabled as a contributor to the determination of the fpga_man_IRQ assertion status.
The fpga_man_IRQ and its contributing FPGA monitor status conditions are treated as a level sensitive interrupt. As as consequence, there are no explicit functions to explicitly clear an asserted FPGA monitor status conditions.
Functions | |
ALT_STATUS_CODE | alt_fpga_man_irq_disable (ALT_FPGA_MON_STATUS_t mon_stat_mask) |
ALT_STATUS_CODE | alt_fpga_man_irq_enable (ALT_FPGA_MON_STATUS_t mon_stat_mask) |
ALT_STATUS_CODE alt_fpga_man_irq_disable | ( | ALT_FPGA_MON_STATUS_t | mon_stat_mask | ) |
Disable the fpga_man_IRQ interrupt signal source monitor status condition(s).
This function disables one or more of the monitor status conditions as contributors to the fpga_man_IRQ interrupt signal state.
NOTE: A set bit for a monitor status condition in the mask value does not have the effect of enabling it as a contributor to the fpga_man_IRQ interrupt signal state. The function alt_fpga_man_irq_enable() is used to enable monitor status source condition(s).
mon_stat_mask | Specifies the monitor status conditions to disable as interrupt source contributors. mon_stat_mask is a mask of logically OR'ed ALT_FPGA_MON_STATUS_t values that designate the monitor status conditions to disable. |
ALT_E_SUCCESS | Successful status. |
ALT_E_BAD_ARG | The mon_stat_mask argument contains an unknown monitor status value. |
ALT_STATUS_CODE alt_fpga_man_irq_enable | ( | ALT_FPGA_MON_STATUS_t | mon_stat_mask | ) |
Enable the fpga_man_IRQ interrupt signal source monitor status condition(s).
This function enables one or more of the monitor status conditions as contributors to the fpga_man_IRQ interrupt signal state.
NOTE: A cleared bit for any monitor status condition in the mask value does not have the effect of disabling it as a contributor to the fpga_man_IRQ interrupt signal state. The function alt_fpga_man_irq_disable() is used to disable monitor status source condition(s).
mon_stat_mask | Specifies the monitor status conditions to enable as interrupt source contributors. mon_stat_mask is a mask of logically OR'ed ALT_FPGA_MON_STATUS_t values that designate the monitor conditions to enable. |
ALT_E_SUCCESS | Successful status. |
ALT_E_BAD_ARG | The mon_stat_mask argument contains an unknown monitor status value. |