User`s manual
RX62N Group, RX621 Group 4. Library Reference
2) R_MCU_GetStatus
Synopsis
Read the MCU status.
Prototype
bool R_MCU_GetStatus(
uint16_t * data
// Pointer to the variable where the status value shall be stored.
);
Description
Read the status registers for the MCU.
[data]
The status flags shall be stored in the format below.
b15
b14
b13
b12
b11 – b10
b9
b8
Start-up states
0
USB boot
0
Boot mode
External bus
On-chip ROM
0: Other mode
1: USB Boot mode
0: Other mode
1: Boot mode
00: 16-bit
10: 8-bit
0: Disabled
1: Enabled
0: Disabled
1: Enabled
b7
b6 – b2
b1
b0
Endian
0
Pin states
0: Little
1: Big
MD1 MD0
Return value
True.
Category
MCU registers
References
R_MCU_Control
Remarks
•
None.
Program example
/* RPDL definitions */
#include "r_pdl_mcu.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
uint16_t status;
/* Read the MCU status registers */
R_MCU_GetStatus(
&status
);
}
R20UT0084EE0112 Rev.1.12 Page 4-43
July. 16, 2014