User`s manual
RX62N Group, RX621 Group 4. Library Reference
3) R_PFC_Modify
Synopsis
Modify a PFC register.
Prototype
bool R_PFC_Modify(
uint8_t data1,
// PFC register selection
uint8_t data2,
// Logical operation
uint8_t data3
// Modification value
);
Description
Write the value to a PFC register.
[data1]
One of the definition values from §4.2.4.
[data2]
•
The logical operation to be applied to the register contents.
PDL_PFC_AND or
PDL_PFC_OR or
PDL_PFC_XOR
Select between AND (&), OR (|) or Exclusive-OR (^).
[data3]
The value to be used for the modification.
Return value
True if a valid register is specified; otherwise false.
Category
PFC registers
References
None.
Remarks
•
The PFC registers are modified by other driver functions. Take care to not overwrite existing
settings.
Program example
/* RPDL definitions */
#include "r_pdl_pfc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
void func( void )
{
/* Set bit 7 in PFDMTU to 1 */
R_PFC_Modify(
PDL_PFC_PFDMTU,
PDL_PFC_OR,
0x80
);
}
R20UT0084EE0112 Rev.1.12 Page 4-41
July. 16, 2014