User`s manual
RX62N Group, RX621 Group 4. Library Reference
3) R_IO_PORT_ModifyControl
Synopsis
Modify an I/O port’s control registers.
Prototype
bool R_IO_PORT_ModifyControl(
uint16_t data1,
// Port or port pin selection
uint8_t data2,
// Control register and logical operation selection
uint8_t data3
// Modification value
);
Description
Modifying the operation of an I/O port or I/O port pin.
[data1]
Use either one of the following definition values (from §4.2.3).
•
One port definition or
•
One port pin definition.
[data2]
Select the register to be modified and the logical operation, using "|" to separate the selections.
•
The control register to be modified.
PDL_IO_PORT_DIRECTION or
Data direction register.
PDL_IO_PORT_INPUT_BUFFER or
Input buffer control register.
PDL_IO_PORT_PULL_UP or
Pull-up MOS control register. Applicable for ports 9 to E
and G.
PDL_IO_PORT_TYPE
Open-drain control register. Applicable for ports 0 to 3
and C.
•
The logical operation to be applied to the control register.
PDL_IO_PORT_AND or
PDL_IO_PORT_OR or
PDL_IO_PORT_XOR
Select between AND (&), OR (|) or Exclusive-OR (^).
[data3]
The value to be used for the modification; Between 0x00 and 0xFF for a port, 0 or 1 for a pin.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
I/O port
References
None.
Remarks
•
Ensure that the specified functions are valid for the selected port pin.
•
The data direction and input buffer registers may be modified by other driver Create functions.
Take care to not overwrite existing settings.
R20UT0084EE0112 Rev.1.12 Page 4-31
July. 16, 2014