Rev.1.01 2007.02.16
RJJ10J1643-0101
153
4.2.3 I/O Port
__SetIOPort
Synopsis
<Set I/O port>
Boolean __SetIOPort(unsigned long data1, unsigned int data2)
data1
Setup data 1 (content differs with MCU type)
data2
Setup data 2 (content differs with MCU type)
Description
Sets the operating conditions of a specified I/O port.
[data1]
For data1, the following definition values can be set. To set multiple definition values at
the same time, use the symbol “|” to separate each specified value. Note, however, that
multiple ports cannot be specified at the same time.
(M16C)
The definition values corresponding to each I/O port are listed below.
RAPI_PORT_0_0 Port
P0
0
RAPI_PORT_0_1
Port
P0
1
RAPI_PORT_0_2 Port
P0
2
RAPI_PORT_0_3
Port
P0
3
RAPI_PORT_0_4 Port
P0
4
RAPI_PORT_0_5
Port
P0
5
RAPI_PORT_0_6 Port
P0
6
RAPI_PORT_0_7
Port
P0
7
RAPI_PORT_1_0 Port
P1
0
RAPI_PORT_1_1
Port
P1
1
RAPI_PORT_1_2 Port
P1
2
RAPI_PORT_1_3
Port
P1
3
RAPI_PORT_1_4 Port
P1
4
RAPI_PORT_1_5
Port
P1
5
RAPI_PORT_1_6 Port
P1
6
RAPI_PORT_1_7
Port
P1
7
RAPI_PORT_2_0 Port
P2
0
RAPI_PORT_2_1
Port
P2
1
RAPI_PORT_2_2 Port
P2
2
RAPI_PORT_2_3
Port
P2
3
RAPI_PORT_2_4 Port
P2
4
RAPI_PORT_2_5
Port
P2
5
RAPI_PORT_2_6 Port
P2
6
RAPI_PORT_2_7
Port
P2
7
RAPI_PORT_3_0 Port
P3
0
RAPI_PORT_3_1
Port
P3
1
RAPI_PORT_3_2 Port
P3
2
RAPI_PORT_3_3
Port
P3
3
RAPI_PORT_3_4 Port
P3
4
RAPI_PORT_3_5
Port
P3
5
RAPI_PORT_3_6 Port
P3
6
RAPI_PORT_3_7
Port
P3
7
RAPI_PORT_6_0 Port
P6
0
RAPI_PORT_6_1
Port
P6
1
RAPI_PORT_6_2 Port
P6
2
RAPI_PORT_6_3
Port
P6
3
RAPI_PORT_6_4 Port
P6
4
RAPI_PORT_6_5
Port
P6
5
RAPI_PORT_6_6 Port
P6
6
RAPI_PORT_6_7
Port
P6
7
RAPI_PORT_7_0 Port
P7
0
RAPI_PORT_7_1
Port
P7
1
RAPI_PORT_7_2 Port
P7
2
RAPI_PORT_7_3
Port
P7
3
RAPI_PORT_7_4 Port
P7
4
RAPI_PORT_7_5
Port
P7
5
RAPI_PORT_7_6 Port
P7
6
RAPI_PORT_7_7
Port
P7
7
RAPI_PORT_8_0 Port
P8
0
RAPI_PORT_8_1
Port
P8
1
RAPI_PORT_8_2 Port
P8
2
RAPI_PORT_8_3
Port
P8
3
RAPI_PORT_8_4 Port
P8
4
RAPI_PORT_8_5
Port
P8
5
RAPI_PORT_8_6 Port
P8
6
RAPI_PORT_8_7
Port
P8
7