Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Interrupt_Controller_Functions
[MISC_Block_Functions]
  | Functions | |
| void | AD5940_INTCCfg (uint32_t AfeIntcSel, uint32_t AFEIntSrc, BoolFlag State) | 
| Enable or Disable selected interrupt source(s) | |
| uint32_t | AD5940_INTCGetCfg (uint32_t AfeIntcSel) | 
| Check if current interrupt configuration. | |
| void | AD5940_INTCClrFlag (uint32_t AfeIntSrcSel) | 
| Clear selected interrupt(s) flag(INTC0Flag and INTC1Flag are both cleared). | |
| BoolFlag | AD5940_INTCTestFlag (uint32_t AfeIntcSel, uint32_t AfeIntSrcSel) | 
| Test if selected interrupt source(s) is(are) bTRUE. | |
| uint32_t | AD5940_INTCGetFlag (uint32_t AfeIntcSel) | 
| return register value of REG_INTC_INTCFLAGx | |
Function Documentation
| void AD5940_INTCCfg | ( | uint32_t | AfeIntcSel, | 
| uint32_t | AFEIntSrc, | ||
| BoolFlag | State | ||
| ) | 
Enable or Disable selected interrupt source(s)
- Parameters:
- 
  AfeIntcSel : {AFEINTC_0, AFEINTC_1} - AFEINTC_0: Configure Interrupt Controller 0
- AFEINTC_1: Configure Interrupt Controller 1
 AFEIntSrc,: select from AFEINTC_SRC_Const - AFEINTSRC_ADCRDY : Bit0 ADC Result Ready Status
- AFEINTSRC_DFTRDY : Bit1 DFT Result Ready Status
- AFEINTSRC_SUPPLYFILTRDY : Bit2 Low Pass Filter Result Status
- AFEINTSRC_TEMPRDY : Bit3, Temp Sensor Result Ready
- AFEINTSRC_ADCMINERR : Bit4, ADC Minimum Value
- AFEINTSRC_ADCMAXERR : Bit5, ADC Maximum Value
- AFEINTSRC_ADCDIFFERR : Bit6, ADC Delta Ready
- AFEINTSRC_MEANRDY : Bit7, Mean Result Ready
- AFEINTSRC_VARRDY : Bit8, Variance Result Ready
- AFEINTSRC_DLYCMDDONE : Bit9, User controlled interrupt by writing AFEGENINTSTA. Provides an Early Indication for the End of the Test _Block.
- AFEINTSRC_HWSETUPDONE : Bit10, User controlled interrupt by writing AFEGENINTSTA. Indicates the MMR Setup for the Measurement Step Finished
- AFEINTSRC_BRKSEQ : Bit11, User controlled interrupt by writing AFEGENINTSTA.
- AFEINTSRC_CUSTOMINS : Bit12, User controlled interrupt by writing AFEGENINTSTA. General Purpose Custom Interrupt.
- AFEINTSRC_BOOTLDDONE : Bit13, OTP Boot Loading Done
- AFEINTSRC_WAKEUP : Bit14, AFE Woken up
- AFEINTSRC_ENDSEQ : Bit15, End of Sequence Interrupt.
- AFEINTSRC_SEQTIMEOUT : Bit16, Sequencer Timeout Command Finished.
- AFEINTSRC_SEQTIMEOUTERR : Bit17, Sequencer Timeout Command Error.
- AFEINTSRC_CMDFIFOFULL : Bit18, Command FIFO Full Interrupt.
- AFEINTSRC_CMDFIFOEMPTY : Bit19, Command FIFO Empty
- AFEINTSRC_CMDFIFOTHRESH: Bit20, Command FIFO Threshold Interrupt.
- AFEINTSRC_CMDFIFOOF : Bit21, Command FIFO Overflow Interrupt.
- AFEINTSRC_CMDFIFOUF : Bit22, Command FIFO Underflow Interrupt.
- AFEINTSRC_DATAFIFOFULL : Bit23, Data FIFO Full Interrupt.
- AFEINTSRC_DATAFIFOEMPTY: Bit24, Data FIFO Empty
- AFEINTSRC_DATAFIFOTHRESH: Bit25, Data FIFO Threshold Interrupt.
- AFEINTSRC_DATAFIFOOF : Bit26, Data FIFO Overflow Interrupt.
- AFEINTSRC_DATAFIFOUF : Bit27, Data FIFO Underflow Interrupt.
- AFEINTSRC_WDTIRQ : Bit28, WDT Timeout Interrupt.
- AFEINTSRC_CRC_OUTLIER : Bit29, CRC interrupt for M355, Outliers Int for AD5940
- AFEINTSRC_GPT0INT_SLPWUT: Bit30, General Purpose Timer0 IRQ for M355. Sleep or Wakeup Timer timeout for AD5940
- AFEINTSRC_GPT1INT_TRYBRK: Bit31, General Purpose Timer1 IRQ for M355. Tried to Break IRQ for AD5940
- AFE_INTC_ALLINT : All interrupts
 State : {bTRUE, bFALSE} - bTRUE: Enable these interrupt source(s)
- bFALSE: Disable interrupt source(s)
 
- Returns:
- return none.
| void AD5940_INTCClrFlag | ( | uint32_t | AfeIntSrcSel ) | 
Clear selected interrupt(s) flag(INTC0Flag and INTC1Flag are both cleared).
- Parameters:
- 
  AfeIntSrcSel,: Select from AFEINTC_SRC_Const 
- Returns:
- return none.
| uint32_t AD5940_INTCGetCfg | ( | uint32_t | AfeIntcSel ) | 
| uint32_t AD5940_INTCGetFlag | ( | uint32_t | AfeIntcSel ) | 
| BoolFlag AD5940_INTCTestFlag | ( | uint32_t | AfeIntcSel, | 
| uint32_t | AfeIntSrcSel | ||
| ) | 
Test if selected interrupt source(s) is(are) bTRUE.
- Parameters:
- 
  AfeIntcSel : {AFEINTC_0, AFEINTC_1} - AFEINTC_0: Read Interrupt Controller 0 flag
- AFEINTC_1: Read Interrupt Controller 1 flag
 AfeIntSrcSel,: Select from AFEINTC_SRC_Const 
- Returns:
- If selected interrupt source(s) are all cleared, return bFALSE. Otherwise return bTRUE.
Generated on Tue Jul 12 2022 21:32:08 by
 1.7.2
 1.7.2