User`s manual
RX62N Group, RX621 Group 4. Library Reference
4) R_LPC_ReadBackup
Synopsis
Read from the Backup registers.
Prototype
bool R_LPC_ReadBackup(
uint8_t * data1,
// Data pointer
uint8_t data2
// Data count
);
Description
Read data from the backup registers.
[data1]
The storage area for the data read from the backup area.
[data2]
The number of bytes to be read from the backup area. Valid from 1 to 32.
Return value
True if all parameters are valid; otherwise false.
Category
LPC
References
R_LPC_WriteBackup
Remarks
•
The definition R_PDL_LPC_BACKUP_AREA_SIZE specifies the number of bytes that are
available
Program example
/* RPDL definitions */
#include "r_pdl_lpc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
uint8_t data_to_restore[R_PDL_LPC_BACKUP_AREA_SIZE];
/* Read data from the backup registers */
R_LPC_ReadBackup(
data_to_restore,
R_PDL_LPC_BACKUP_AREA_SIZE
);
}
R20UT0084EE0112 Rev.1.12 Page 4-48
July. 16, 2014