
Rev.1.00 May 22 2012
REJ09B0566
Library Reference
R_INTC_GetExtInterruptStatus
33BInterrupt Control Unit
4) R_INTC_GetExtInterruptStatus
Synopsis
Read the external interrupt status.
Prototype bool R_INTC_GetExtInterruptStatus(
uint8_t data1, // Pin selection
uint8_t * data2
// A pointer to the buffer where the status data shall be stored.
);
Description
Acquire the status for the specified external interrupt.
[data1]
Choose the interrupt pin to be checked.
PDL_INTC_IRQ0 External interrupt 0
PDL_INTC_IRQ1 External interrupt 1
PDL_INTC_IRQ2 External interrupt 2
PDL_INTC_IRQ3 External interrupt 3
PDL_INTC_IRQ4 External interrupt 4
PDL_INTC_IRQ5 External interrupt 5
PDL_INTC_IRQ6 External interrupt 6
PDL_INTC_IRQ7 External interrupt 7
PDL_INTC_PINT0 External interrupt Pin 0
PDL_INTC_PINT1 External interrupt Pin 1
PDL_INTC_PINT2 External interrupt Pin 2
PDL_INTC_PINT3 External interrupt Pin 3
PDL_INTC_PINT4 External interrupt Pin 4
PDL_INTC_PINT5 External interrupt Pin 5
PDL_INTC_PINT6 External interrupt Pin 6
PDL_INTC_PINT7 External interrupt Pin 7
PDL_INTC_NMI NMI Interrupt
PDL_INTC_GEN_ILL_INSTRUCTI
ON General illegal instruction
PDL_INTC_SLOT_ILL_INSTRUCTI
ON Slot illegal instruction
PDL_INTC_CPU_ADDR_ERR CPU Address Error
PDL_INTC_DMA_ADDR_ERR DMA Address Error
PDL_INTC_FPU FPU Error
PDL_INTC_BANK_OVERFLOW BANK Overflow Error
PDL_INTC_BANK_UNDERFLOW BANK Underflow Error
PDL_INTC_DIV_BY_ZERO Divide by Zero Error
PDL_INTC_DIV_OVERFLOW Divide Overflow Error
[data2]
The status flags shall be stored in the following format:
For an IRQ and PINT pin:
b7 – b4 b3 – b2 b1 b0
00: Low level detection
-
01: Falling edge detection
10: Rising edge detection
11: Both edge detection
Pin logic
level
0: Idle
1: Valid interrupt condition detected
For the NMI pin:
b7 – b2 b1 b0
-
0: Falling edge detection
1: Rising edge detection
0: Idle
1: Valid interrupt condition detected
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
External interrupt
Reference
R_INTC_CreateExtInterrupt, R_INTC_ControlExtInterrupt
Remarks • None
Commentaires sur ces manuels