User`s manual

RX62N Group, RX621 Group 4. Library Reference
1) R_PFC_Read
Synopsis
Read a PFC register.
Prototype
bool R_PFC_Read(
uint8_t data1,
// PFC register selection
uint8_t * data2
// Pointer to the variable where the PFC register’s value shall be stored.
);
Description
Get the value of a PFC register.
[data1]
One of the definition values from §4.2.4.
[data2]
The value read from the register.
Return value
True if a valid register is specified; otherwise false.
Category
PFC registers
References
None.
Remarks
None.
Program example
/* RPDL definitions */
#include "r_pdl_pfc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
uint8_t data;
/* Get the value of register PFBTMR */
R_PFC_Read(
PDL_PFC_PFBTMR,
&data
);
}
R20UT0084EE0112 Rev.1.12 Page 4-39
July. 16, 2014