User`s manual

RX62N Group, RX621 Group 4. Library Reference
5) R_LPC_GetStatus
Synopsis
Read the status flags.
Prototype
bool R_LPC_GetStatus(
uint16_t * data
// Data pointer
);
Description
Read the Deep Standby Interrupt Flag and Reset Status.
[data]
The status flags shall be stored in the format below.
b15
b14 b11
b10
b9
b8
Event detection flags (0: not detected; 1: detected)
An interrupt has caused an exit from deep software
standby mode, followed by an internal reset
0 LVD2 LVD1
Power-on
reset
b7
b6
b5
b4
b3
b2
b1
b0
Deep Software Standby cancel request detection
0: No activity
1: The exit from deep software standby was caused by one of the following signals.
NMI
USB suspend / resume
RTC
LVD
IRQ3-A
IRQ2-A
IRQ1-A
IRQ0-A
Return value
True.
Category
LPC
References
R_LPC_Create, R_LPC_Control
Remarks
If a flag is set to 1, it shall be automatically cleared to 0 by this function (apart from the Power-on
reset flag, which can be cleared only by a hardware reset).
Program example
/* RPDL definitions */
#include "r_pdl_lpc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
uint16_t status_flags;
/* Find out what caused the exit from deep software standby */
R_LPC_GetStatus(
&status_flags
);
}
R20UT0084EE0112 Rev.1.12 Page 4-49
July. 16, 2014