Download Renesas Peripheral Driver Library User`s Manual (RX63N Group)

Transcript
RX63N Group
2)
4. Library Reference
R_IO_PORT_ReadControl
Synopsis
Read an I/O port’s control register.
Prototype
bool R_IO_PORT_ReadControl(
uint16_t data1,
// Port or port pin selection
uint8_t data2,
// Control register selection
uint16_t * data3 // Data storage location
);
Description
Read an I/O port pin control setting.
[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 read.
PDL_IO_PORT_DIRECTION or
PDL_IO_PORT_MODE or
PDL_IO_PORT_TYPE or
PDL_IO_PORT_PULL_UP or
PDL_IO_PORT_DRIVE
Data direction.
General or Peripheral I/O mode control.
Open-drain control.
Pull-up control.
Drive capacity control.
Valid for ports 0, 2, 5 to 7, 9 to E and G.
[data3]
The address where the register value shall be stored, using one of the formats below.
Pin (not PE1 open-drain control):
b15 – b1
b0
0
0 or 1
Pin PE1 open-drain control:
b15 – b2
b1 – b0
0
0 to 3
Port (not open-drain control):
b15 – b8
b7 – b1
0
Register
Port (open-drain control)
b15 – b8
b7 – b0
Register ODR1
Register ODR0
Return value
Category
References
Remarks
True if all parameters are valid and exclusive; otherwise false.
I/O port
None.
• Ensure that the specified register is valid for the selected port or port pin.
R20UT1963EE0100 Rev.1.00
Jul 19, 2012
Page 92 of 487