Renesas RJJ10J1643-0101 Network Card User Manual


 
Rev.1.01 2007.02.16
RJJ10J1643-0101
166
__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 (content differs with MCU type)
data2 Setup data 2 (content differs with MCU type)
data3 Setup data 3 (content differs with MCU type)
data4 Setup data 4 (content differs with MCU type)
Description
[data1]
Set the operating condition of a specified I/O port in each relevant register.
(M16C)
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_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
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.
(R8C)
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_6 Port P6 register
(H8/300H)
The definition values corresponding to each I/O port register are listed below.
RAPI_PORT_1 Port P1 register RAPI_PORT_2 Port P2 register
RAPI_PORT_3 Port P3 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_C Port PC register RAPI_PORT_D Port PD register
RAPI_PORT_E Port PE register RAPI_PORT_F Port PF register
RAPI_PORT_G Port PG register RAPI_PORT_H Port PH register
RAPI_PORT_J Port PJ register
[data2]
(M16C) (R8C)
Specify the set value for the port direction register corresponding to a selected port.
(H8/300H)