
Rev.1.00 May 22 2012
REJ09B0566
4.2.2 33BInterrupt Control Unit
5) R_INTC_Read
Synopsis
Read an interrupt register.
Prototype bool R_INTC_Read(
uint8_t data1, // Register selection
uint8_t data2, // Register number
uint8_t * data3 // Data storage location
);
Description
Read an interrupt register and store the value.
[data1]
• The register to be read
PDL_INTC_REG_ICR or
PDL_INTC_REG_IPR or
PDL_INTC_REG_IRQRR or
PDL_INTC_REG_PIRR or
PDL_INTC_REG_PINTER or
PDL_INTC_REG_IBNR or
PDL_INTC_REG_IBCR
Select the current CPU interrupt priority level or
IRQ Control Register
IRQ Priority Register
IRQ Interrupt Request Register
PINT Interrupt Enable Register
PINT Interrupt Request Register
Bank Control Register
Bank Number Register
[data2]
The register number.
ICR: Between 0 and 3
IPR: Between 0 and 22 (16h).
IRQRR: Ignored.
PIRR: Ignored.
PINTER: Ignored.
IBCR: Ignored.
IBCR: Ignored.
[data3]
The location where the register’s value shall be stored.
Return value
True.
Category
Interrupt control
Reference
R_INTC_Write, R_INTC_Modify
Remarks
• None.
Program example
/* PDL definitions */
#include “r_pdl_intc.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func( void )
{
uint8_t ipl;
/* Read the IPL bits */
R_INTC_Read(
PDL_INTC_REG_IPL,
0,
&ipl
);
}
Kommentare zu diesen Handbüchern