User`s manual
RX62N Group, RX621 Group 4. Library Reference
7) R_INTC_Read
Synopsis
Read an interrupt register.
Prototype
bool R_INTC_Read(
uint16_t data1,
// Register selection
uint8_t * data2
// Data storage location
);
Description
Read an interrupt register and store the value.
[data1]
•
The register to be read.
PDL_INTC_REG_IPL or
PDL_INTC_REG_IR_(register) or
PDL_INTC_REG_IER_(register) or
PDL_INTC_REG_IPR_(register) or
PDL_INTC_REG_DTCER_(register)
Select the current CPU interrupt priority level or
Interrupt Request register or
Interrupt Request Enable register or
Interrupt Priority register or
DTC Activation Enable register
[data2]
The location where the register’s value shall be stored.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Interrupt control
Reference
None.
Remarks
•
For (register), select one of the registers listed in the tables starting on page 4-20.
Program example
/* RPDL definitions */
#include "r_pdl_intc.h"
/* RPDL 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,
&ipl
);
}
R20UT0084EE0112 Rev.1.12 Page 4-24
July. 16, 2014