Renesas M16C/62P Group Computer Hardware User Manual


 
Rev.1.00 2007.11.1
REC10B0002-0100
78
__SetIOPortRegister
Synopsis
<Set I/O port register>
Boolean __SetIOPortRegister(unsigned long data1, unsigned int data2, unsigned
int data3, unsigned int data4)
data1 Setup data 1
data2 Setup data 2
data3 Setup data 3
data4 Setup data 4
Description
[data1]
Set the operating condition of a specified I/O port in each relevant register.
The definition values corresponding to each I/O port register are listed below.
RAPI_PORT_0 Port P0 register RAPI_PORT_1 Port P1 register
RAPI_PORT_2 Port P2 register RAPI_PORT_3 Port P3 register
RAPI_PORT_4 Port P4 register RAPI_PORT_5 Port P5 register
RAPI_PORT_6 Port P6 register RAPI_PORT_7 Port P7 register
RAPI_PORT_8 Port P8 register RAPI_PORT_9 Port P9 register
RAPI_PORT_10 Port P10 register RAPI_PORT_11 Port P11 register
RAPI_PORT_12 Port P12 register RAPI_PORT_13 Port P13 register
RAPI_PORT_14 Port P14 register
The definition values related to port settings are described below.
RAPI_LATCH Set to read the port latch regardless of whether the port is set for input or
output. Specifiable only when port P1 is used.
[data2]
Specify the set value for the port direction register corresponding to a selected port.
[data3]
Specify the set value for the pullup control register corresponding to a selected port.
[data4]
Specify 0.
Return value
If the I/O port register specification is incorrect, RAPI_FALSE is returned; otherwise,
RAPI_TRUE is returned.
Functionality
I/O port
Reference
__SetIOPort, __ReadIOPort, __WriteIOPort, __ReadIOPortRegister,
__WriteIOPortRegister
Remark