
Rev.1.00 May 22 2012
REJ09B0566
Library
Reference
4
4.2.4 35BPort Function ControlR_PFC_Read
3) R_PFC_Modify
Synopsis Modify a PFC register.
bool R_PFC_Modify(
Uint32_t data1,
// PFC register selection
uint8_t data2,
// Logical operation
Uint16_t data3 // Modification value
);
Description
Write the value to a PFC register.
[data1]
Or use any of the following definition values to select the register.
PDL_PBCR0 Port B Control Register 0 PDL_PGCR0 Port G Control Register 0
PDL_PBCR1 Port B Control Register 1 PDL_PGCR1 Port G Control Register 1
PDL_PBCR2 Port B Control Register 2 PDL_PGCR2 Port G Control Register 2
PDL_PBCR3 Port B Control Register 3 PDL_PGCR3 Port G Control Register 3
PDL_PBCR4 Port B Control Register 4 PDL_PGCR4 Port G Control Register 4
PDL_PBCR5 Port B Control Register 5 PDL_PGCR5 Port G Control Register 5
PDL_PCCR0 Port C Control Register 0 PDL_PGCR6 Port G Control Register 6
PDL_PCCR1 Port C Control Register 1 PDL_PGCR7 Port G Control Register 7
PDL_PCCR2 Port C Control Register 2 PDL_PHCR0 Port H Control Register 0
PDL_PDCR0 Port D Control Register 0 PDL_PHCR1 Port H Control Register 1
PDL_PDCR1 Port D Control Register 1 PDL_PJCR0 Port J Control Register 0
PDL_PDCR2 Port D Control Register 2 PDL_PJCR1 Port J Control Register 1
PDL_PDCR3 Port D Control Register 3 PDL_PJCR2 Port J Control Register 2
PDL_PECR0 Port E Control Register 0 PDL_PKCR0 Port K Control Register 0
PDL_PECR1 Port E Control Register 1 PDL_PKCR1 Port K Control Register 1
PDL_PFCR0 Port F Control Register 0 PDL_PKCR2 Port K Control Register 2
PDL_PFCR1 Port F Control Register 1
PDL_PFCR2 Port F Control Register 2
PDL_PFCR3 Port F Control Register 3
[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.
Functionality
PFC registers
References
R_PFC_Read
Remarks •
Program example
The PFC registers are modified by other driver functions. Take care to not overwrite existing settings.
Comentários a estes Manuais